]> git.sesse.net Git - vlc/commitdiff
add_key: declare the global key first
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Dec 2010 03:36:49 +0000 (05:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 5 Dec 2010 03:37:31 +0000 (05:37 +0200)
include/vlc_plugin.h

index e65dd455743d4fcdc76247683155923392f61632..77e8b7e8c87d9bce1fa3cf25c563038a3ec67e32 100644 (file)
@@ -342,9 +342,9 @@ enum vlc_module_properties
     add_int_inner( CONFIG_ITEM_INTEGER, name, text, longtext, advc, value )
 
 #define add_key( name, value, text, longtext, advc ) \
-    add_int_inner( CONFIG_ITEM_KEY, name, text, longtext, advc, value ) \
     add_int_inner( CONFIG_ITEM_KEY, "global-" name, text, longtext, advc, \
-                   KEY_UNSET )
+                   KEY_UNSET ) \
+    add_int_inner( CONFIG_ITEM_KEY, name, text, longtext, advc, value )
 
 #define add_integer_with_range( name, value, i_min, i_max, p_callback, text, longtext, advc ) \
     add_integer( name, value, text, longtext, advc ) \