]> git.sesse.net Git - vlc/commitdiff
Fixed ppsz_input_state in RC after input state changes.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 5 Dec 2008 09:22:59 +0000 (10:22 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 9 Dec 2008 20:13:01 +0000 (21:13 +0100)
include/vlc_input.h
modules/control/rc.c

index 8e230e17a9c775c1b76810a10733ba5962080b2f..a3b1b7a3c0ab0706ce5dfe702e155747df7dc406 100644 (file)
@@ -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
 {
index 3b8df65f055eab838d7ae0c2fe3292dc917e493a..79814d5b64be8ad0392100cd852e92d4bc870ae0 100644 (file)
 
 /* 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"),
 };
 
 /*****************************************************************************