gst-libs/gst/audio/multichannel.c: Const-ify two arrays.
authorTim-Philipp Müller <tim@centricular.net>
Mon, 17 Jul 2006 13:48:10 +0000 (13:48 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 17 Jul 2006 13:48:10 +0000 (13:48 +0000)
Original commit message from CVS:
* gst-libs/gst/audio/multichannel.c:
(gst_audio_check_channel_positions),
(gst_audio_fixate_channel_positions):
Const-ify two arrays.

ChangeLog
gst-libs/gst/audio/multichannel.c

index 96d4fec..f2a8584 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2006-07-17  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * gst-libs/gst/audio/multichannel.c:
+       (gst_audio_check_channel_positions),
+       (gst_audio_fixate_channel_positions):
+         Const-ify two arrays.
+
+2006-07-17  Tim-Philipp Müller  <tim at centricular dot net>
+
        * ext/alsa/gstalsa.c: (caps_add_channel_configuration):
          Fix typo, so that alsasink also advertises 8 channels
          if that's supported (tags: can, worms, open, alsa, ph34r).
index 8d6c107..a09153d 100644 (file)
@@ -42,10 +42,10 @@ gst_audio_check_channel_positions (const GstAudioChannelPosition * pos,
     gint channels)
 {
   gint i, n;
-  struct
+  const struct
   {
-    GstAudioChannelPosition pos1[2];
-    GstAudioChannelPosition pos2[1];
+    const GstAudioChannelPosition pos1[2];
+    const GstAudioChannelPosition pos2[1];
   } conf[] = {
     /* front: mono <-> stereo */
     { {
@@ -491,10 +491,10 @@ gst_audio_fixate_channel_positions (GstStructure * str)
    * either one until all unknown values are filled. This might not work in
    * corner cases but should work OK for the general case.
    */
-  struct
+  const struct
   {
-    GstAudioChannelPosition pos1[2];
-    GstAudioChannelPosition pos2[1];
+    const GstAudioChannelPosition pos1[2];
+    const GstAudioChannelPosition pos2[1];
   } conf[] = {
     /* front: mono <-> stereo */
     { {