Dummy: vlc is only a valid shortcut for access/demux
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 26 Apr 2009 16:23:38 +0000 (19:23 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 26 Apr 2009 16:39:41 +0000 (19:39 +0300)
modules/misc/dummy/dummy.c

index fdaf8df..22b7469 100644 (file)
@@ -61,7 +61,6 @@ vlc_module_begin ()
     set_shortname( N_("Dummy"))
     set_description( N_("Dummy interface function") )
     set_capability( "interface", 0 )
-    add_shortcut( "vlc" )
     set_callbacks( OpenIntf, NULL )
 #ifdef WIN32
     set_section( N_( "Dummy Interface" ), NULL )
@@ -72,10 +71,12 @@ vlc_module_begin ()
         set_description( N_("Dummy access function") )
         set_capability( "access", 0 )
         set_callbacks( OpenAccess, NULL )
+        add_shortcut( "vlc" )
     add_submodule ()
         set_description( N_("Dummy demux function") )
         set_capability( "demux", 0 )
         set_callbacks( OpenDemux, CloseDemux )
+        add_shortcut( "vlc" )
     add_submodule ()
         set_section( N_( "Dummy decoder" ), NULL )
         set_description( N_("Dummy decoder function") )