[0.11] gst-plugins-bad: flite: make constant static arrays actually static

Vincent Penquerc'h vincent at kemper.freedesktop.org
Tue Jan 24 03:57:23 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 6418d914ea934cb48e879fd56de047c63014044c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=6418d914ea934cb48e879fd56de047c63014044c

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Tue Jan 24 11:56:34 2012 +0000

flite: make constant static arrays actually static

---

 ext/flite/gstflitetestsrc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/flite/gstflitetestsrc.c b/ext/flite/gstflitetestsrc.c
index 33fd793..c31fb96 100644
--- a/ext/flite/gstflitetestsrc.c
+++ b/ext/flite/gstflitetestsrc.c
@@ -401,11 +401,11 @@ gst_flite_test_src_stop (GstBaseSrc * basesrc)
 static char *
 get_channel_name (GstFliteTestSrc * src, int channel)
 {
-  const char *numbers[10] = {
+  static const char *numbers[10] = {
     "zero", "one", "two", "three", "four", "five", "six", "seven", "eight",
     "nine"
   };
-  const char *names[64] = {
+  static const char *names[64] = {
     "front left", "front right", "front center", "lfe 1", "rear left",
     "rear right", "front left of center", "front right of center",
     "rear center", "lfe 2", "side left", "side right", "top front left",



More information about the gstreamer-commits mailing list