Commit efea0aa7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

0 has to be a legal value for vlc_key_t

parent c766d434
......@@ -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,
......
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment