X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Finput%2Fdemux.c;h=9aa2105cf7835307ce2d8edec31b61206cb8a342;hb=9d65e77152039fcb91ff55e8a590bafc17f642c0;hp=be8f48e869dc4dcd6f6542a015c310fc4680b4d3;hpb=387950f7f7ae3768bc39f9487e9559179df325b6;p=vlc diff --git a/src/input/demux.c b/src/input/demux.c index be8f48e869..9aa2105cf7 100644 --- a/src/input/demux.c +++ b/src/input/demux.c @@ -54,7 +54,7 @@ demux_t *__demux_New( vlc_object_t *p_obj, p_demux->psz_path = strdup( psz_path ); /* Take into account "demux" to be able to do :demux=dump */ - if( *p_demux->psz_demux == '\0' ) + if( p_demux->psz_demux && *p_demux->psz_demux == '\0' ) { free( p_demux->psz_demux ); p_demux->psz_demux = var_GetNonEmptyString( p_obj, "demux" ); @@ -358,6 +358,7 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux, VLC_THREAD_PRIORITY_INPUT, false ) ) { vlc_object_release( s ); + free( p_sys->psz_name ); free( p_sys ); return NULL; }