summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/audio/audio-info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/audio-info.c b/gst-libs/gst/audio/audio-info.c
index 646ed5dc0..30ce6a135 100644
--- a/gst-libs/gst/audio/audio-info.c
+++ b/gst-libs/gst/audio/audio-info.c
@@ -119,6 +119,7 @@ gst_audio_info_set_format (GstAudioInfo * info, GstAudioFormat format,
g_return_if_fail (info != NULL);
g_return_if_fail (format != GST_AUDIO_FORMAT_UNKNOWN);
+ g_return_if_fail (channels <= 64 || position == NULL);
finfo = gst_audio_format_get_info (format);