]> git.sesse.net Git - vlc/blobdiff - modules/demux/gme.cpp
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / demux / gme.cpp
index f5efb043b1d72f98b0b9cd1abea1227c1f382374..dcd213f73ebece167e5aad257bb6798e2f89542a 100644 (file)
@@ -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 . */