X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fgme.cpp;h=dcd213f73ebece167e5aad257bb6798e2f89542a;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=f5efb043b1d72f98b0b9cd1abea1227c1f382374;hpb=07867ac862aa76db92386e06f9b2bbf653df4f28;p=vlc diff --git a/modules/demux/gme.cpp b/modules/demux/gme.cpp index f5efb043b1..dcd213f73e 100644 --- a/modules/demux/gme.cpp +++ b/modules/demux/gme.cpp @@ -121,7 +121,8 @@ static int Open( vlc_object_t *p_this ) /* We accept file based on extention match */ if( !p_demux->b_force ) { - if( ( ext = strrchr( p_demux->psz_path, '.' ) ) == NULL || + if( p_demux->psz_file == NULL + || ( ext = strrchr( p_demux->psz_file, '.' ) ) == NULL || stream_Size( p_demux->s ) == 0 ) return VLC_EGENERIC; ext++; /* skip . */