[vlc-devel] commit: Fixed ppsz_input_state in RC after input state changes. ( Laurent Aimar )
git version control
git at videolan.org
Tue Dec 9 21:40:20 CET 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Dec 5 10:22:59 2008 +0100| [da0ee427cf177463134351fb5c4ae124226e89aa] | committer: Laurent Aimar
Fixed ppsz_input_state in RC after input state changes.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da0ee427cf177463134351fb5c4ae124226e89aa
---
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 8e230e1..a3b1b7a 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 3b8df65..79814d5 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -69,14 +69,12 @@
/* input_state_e from <vlc_input.h> */
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"),
};
/*****************************************************************************
More information about the vlc-devel
mailing list