X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fmod.c;h=b7817a4f87cef1d9a5f33988c723fae7fc2f5ad1;hb=dea4f0a1b9ca2132ac32b2b31b0b6063a03c8bc0;hp=37deaa496a059b230b99705121868e255dc6d837;hpb=bba4e5fad969aa19ba1f29c9b5299896088026ca;p=vlc diff --git a/modules/demux/mod.c b/modules/demux/mod.c index 37deaa496a..b7817a4f87 100644 --- a/modules/demux/mod.c +++ b/modules/demux/mod.c @@ -149,7 +149,9 @@ static int Open( vlc_object_t *p_this ) /* We accept file based on extension match */ if( !p_demux->b_force ) { - const char *psz_ext = strrchr( p_demux->psz_path, '.' ); + if( !p_demux->psz_file ) + return VLC_EGENERIC; + const char *psz_ext = strrchr( p_demux->psz_file, '.' ); int i; if( !psz_ext )