From da0ee427cf177463134351fb5c4ae124226e89aa Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Fri, 5 Dec 2008 10:22:59 +0100 Subject: [PATCH] Fixed ppsz_input_state in RC after input state changes. --- include/vlc_input.h | 3 --- modules/control/rc.c | 14 ++++++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/include/vlc_input.h b/include/vlc_input.h index 8e230e17a9..a3b1b7a3c0 100644 --- a/include/vlc_input.h +++ b/include/vlc_input.h @@ -469,9 +469,6 @@ struct input_thread_t * Input state * * This enum is used by the variable "state" - * - * NOTE: you need to update ppsz_input_state in the RC interface - * if you modify this list. */ typedef enum input_state_e { diff --git a/modules/control/rc.c b/modules/control/rc.c index 3b8df65f05..79814d5b64 100644 --- a/modules/control/rc.c +++ b/modules/control/rc.c @@ -69,14 +69,12 @@ /* input_state_e from */ static const char *ppsz_input_state[] = { - N_("Initializing"), - N_("Opening"), - N_("Buffer"), - N_("Play"), - N_("Pause"), - N_("Stop"), - N_("End"), - N_("Error"), + [INIT_S] = N_("Initializing"), + [OPENING_S] = N_("Opening"), + [PLAYING_S] = N_("Play"), + [PAUSE_S] = N_("Pause"), + [END_S] = N_("End"), + [ERROR_S] = N_("Error"), }; /***************************************************************************** -- 2.39.2