]> git.sesse.net Git - vlc/commitdiff
Release the access in case of failure
authorClément Stenac <zorglub@videolan.org>
Wed, 24 Nov 2004 12:32:03 +0000 (12:32 +0000)
committerClément Stenac <zorglub@videolan.org>
Wed, 24 Nov 2004 12:32:03 +0000 (12:32 +0000)
modules/stream_out/rtp.c

index 108b7d67d53a4c62b39fcdb99a29da77fde33b14..e03ea10f8e5dfe9cd687f847647ff6026a30d3fb 100644 (file)
@@ -999,6 +999,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
         default:
             msg_Err( p_stream, "cannot add this stream (unsupported "
                      "codec:%4.4s)", (char*)&p_fmt->i_codec );
+            if( p_access )
+            {
+                sout_AccessOutDelete( p_access );
+            }
             free( id );
             return NULL;
     }