gst-plugins-bad: mpegvideoparse: add a couple consts on string literal arrays

Vincent Penquerc'h vincent at kemper.freedesktop.org
Mon Jan 9 03:00:14 PST 2012


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

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Mon Jan  9 10:58:56 2012 +0000

mpegvideoparse: add a couple consts on string literal arrays

---

 gst/videoparsers/gstmpegvideoparse.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c
index 4f8eb3a..4170996 100644
--- a/gst/videoparsers/gstmpegvideoparse.c
+++ b/gst/videoparsers/gstmpegvideoparse.c
@@ -624,12 +624,13 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
      *                      3 => SNR Scalable, 4 => Main, 5 => Simple
      * 4:2:2 and Multi-view have profile = 0, with the escape bit set to 1
      */
-    const gchar *profiles[] = { "high", "spatial", "snr", "main", "simple" };
+    const gchar *const profiles[] =
+        { "high", "spatial", "snr", "main", "simple" };
     /*
      * Level indication - 4 => High, 6 => High-1440, 8 => Main, 10 => Low,
      *                    except in the case of profile = 0
      */
-    const gchar *levels[] = { "high", "high-1440", "main", "low" };
+    const gchar *const levels[] = { "high", "high-1440", "main", "low" };
 
     if (profile_c > 0 && profile_c < 6)
       profile = profiles[profile_c - 1];



More information about the gstreamer-commits mailing list