[vlc-devel] commit: 0 has to be a legal value for vlc_key_t ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 3 15:37:44 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 3 15:50:43 2010 +0200| [efea0aa7912253a3981c192eb5082743dc4fcc6f] | committer: Rémi Denis-Courmont
0 has to be a legal value for vlc_key_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efea0aa7912253a3981c192eb5082743dc4fcc6f
---
include/vlc_keys.h | 3 ++-
src/misc/action.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index 1a0b29f..b630e48 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -90,7 +90,8 @@ VLC_EXPORT( char *, KeyToString, (uint_fast32_t i_key) ) LIBVLC_USED;
VLC_EXPORT( uint_fast32_t, StringToKey, (char *psz_key) ) LIBVLC_USED;
typedef enum vlc_key {
- ACTIONID_QUIT = 1,
+ ACTIONID_NONE = 0,
+ ACTIONID_QUIT,
ACTIONID_PLAY_PAUSE,
ACTIONID_PLAY,
ACTIONID_PAUSE,
diff --git a/src/misc/action.c b/src/misc/action.c
index d0be62f..73cf236 100644
--- a/src/misc/action.c
+++ b/src/misc/action.c
@@ -59,6 +59,6 @@ vlc_key_t vlc_GetActionId(const char *name)
act = bsearch(name, libvlc_actions, libvlc_actions_count, sizeof(*act),
actcmp);
- return (act != NULL) ? act->value : 0;
+ return (act != NULL) ? act->value : ACTIONID_NONE;
}
More information about the vlc-devel
mailing list