From: Laurent Aimar Date: Fri, 5 Dec 2008 09:22:59 +0000 (+0100) Subject: Fixed ppsz_input_state in RC after input state changes. X-Git-Tag: 1.0.0-pre1~1884 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=da0ee427cf177463134351fb5c4ae124226e89aa;p=vlc Fixed ppsz_input_state in RC after input state changes. --- 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"), }; /*****************************************************************************