]> git.sesse.net Git - vlc/blobdiff - modules/demux/mod.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / demux / mod.c
index 37deaa496a059b230b99705121868e255dc6d837..b7817a4f87cef1d9a5f33988c723fae7fc2f5ad1 100644 (file)
@@ -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 )