]> git.sesse.net Git - vlc/blobdiff - modules/demux/mod.c
skins2: fix compil warning
[vlc] / modules / demux / mod.c
index 37deaa496a059b230b99705121868e255dc6d837..2bafec5b136b65eb73d619a55b94a1629b9bb117 100644 (file)
@@ -75,24 +75,24 @@ vlc_module_begin ()
     set_category( CAT_INPUT )
     set_subcategory( SUBCAT_INPUT_DEMUX )
 
-    add_bool( "mod-noisereduction", true, NULL, N_("Noise reduction"),
+    add_bool( "mod-noisereduction", true, N_("Noise reduction"),
               NOISE_LONGTEXT, false )
 
-    add_bool( "mod-reverb", false, NULL, N_("Reverb"),
+    add_bool( "mod-reverb", false, N_("Reverb"),
               REVERB_LONGTEXT, false )
     add_integer_with_range( "mod-reverb-level", 0, 0, 100, NULL,
              N_("Reverberation level"), REVERB_LEVEL_LONGTEXT, true )
     add_integer_with_range( "mod-reverb-delay", 40, 0, 1000, NULL,
              N_("Reverberation delay"), REVERB_DELAY_LONGTEXT, true )
 
-    add_bool( "mod-megabass", false, NULL, N_("Mega bass"),
+    add_bool( "mod-megabass", false, N_("Mega bass"),
                     MEGABASS_LONGTEXT, false )
     add_integer_with_range( "mod-megabass-level", 0, 0, 100, NULL,
               N_("Mega bass level"), MEGABASS_LEVEL_LONGTEXT, true )
     add_integer_with_range( "mod-megabass-range", 10, 10, 100, NULL,
               N_("Mega bass cutoff"), MEGABASS_RANGE_LONGTEXT, true )
 
-    add_bool( "mod-surround", false, NULL, N_("Surround"), N_("Surround"),
+    add_bool( "mod-surround", false, N_("Surround"), N_("Surround"),
                false )
     add_integer_with_range( "mod-surround-level", 0, 0, 100, NULL,
               N_("Surround level"), SURROUND_LEVEL_LONGTEXT, true )
@@ -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 )