From 564f001aa875530b8618082a045f9f0d40475713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 21 Jan 2015 09:39:30 +0100 Subject: [PATCH] audio-format: Constify the audio format table --- gst-libs/gst/audio/audio-format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/audio/audio-format.c b/gst-libs/gst/audio/audio-format.c index 5a06850e10..783f9e4486 100644 --- a/gst-libs/gst/audio/audio-format.c +++ b/gst-libs/gst/audio/audio-format.c @@ -225,7 +225,7 @@ static void pack_ ##name (const GstAudioFormatInfo *info, \ #define SILENT_U20BE { 0x08, 0x00, 0x00, 0x08, 0x00, 0x00 } #define SILENT_U18LE { 0x00, 0x00, 0x02, 0x00, 0x00, 0x02 } #define SILENT_U18BE { 0x02, 0x00, 0x00, 0x02, 0x00, 0x00 } - static GstAudioFormatInfo formats[] = { + static const GstAudioFormatInfo formats[] = { {GST_AUDIO_FORMAT_UNKNOWN, "UNKNOWN", "Unknown audio", 0, 0, 0, 0}, {GST_AUDIO_FORMAT_ENCODED, "ENCODED", "Encoded audio", GST_AUDIO_FORMAT_FLAG_COMPLEX, 0, 0, 0}, @@ -363,7 +363,7 @@ gst_audio_format_build_integer (gboolean sign, gint endianness, gint i, e; for (i = 0; i < G_N_ELEMENTS (formats); i++) { - GstAudioFormatInfo *finfo = &formats[i]; + const GstAudioFormatInfo *finfo = &formats[i]; /* must be int */ if (!GST_AUDIO_FORMAT_INFO_IS_INTEGER (finfo))