[vlc-devel] commit: Move ppsz_input_state[] to modules/control/rc. c because it is the only user of this variable. This silences a lot of warning messages. (Jean-Paul Saman )

git version control git at videolan.org
Sun Apr 13 19:09:28 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun Apr 13 16:52:34 2008 +0200| [1ea4a619452b34bcd255db59c3c568d9c86476a0]

Move ppsz_input_state[] to modules/control/rc.c because it is the only user of this variable. This silences a lot of warning messages.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ea4a619452b34bcd255db59c3c568d9c86476a0
---

 include/vlc_input.h  |    2 --
 modules/control/rc.c |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index d71a2de..5e03e91 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -544,8 +544,6 @@ enum input_state_e
     ERROR_S
 };
 
-static const char *ppsz_input_state[] = { N_("Initializing"), N_("Opening"), N_("Buffer"), N_("Play"), N_("Pause"), N_("Stop"), N_("Error") };
-
 /* "rate" default, min/max
  * A rate below 1000 plays the movie faster,
  * A rate above 1000 plays the movie slower.
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 8bf1f02..0ef630e 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -66,6 +66,8 @@
 #define MAX_LINE_LENGTH 256
 #define STATUS_CHANGE "status change: "
 
+static const char *ppsz_input_state[] = { N_("Initializing"), N_("Opening"), N_("Buffer"), N_("Play"), N_("Pause"), N_("Stop"), N_("Error") };
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/




More information about the vlc-devel mailing list