From 9ce663f04d7c10e3fa7e9f26b23db4579760fd18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 22 Feb 2012 17:03:42 +0000 Subject: [PATCH] flacenc: audio caps have a *list* of formats, not an array of formats A list of things in caps is something where one is picked in the course of negotiation. An array is always something that only makes sense as a whole in that order. --- ext/flac/gstflacenc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index cec2648f78..fedf818ad2 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -616,26 +616,26 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) ret = gst_pad_get_current_caps (pad); } else { gint i; - GValue v_arr = { 0, }; + GValue v_list = { 0, }; GValue v = { 0, }; GstStructure *s, *s2; - g_value_init (&v_arr, GST_TYPE_ARRAY); + g_value_init (&v_list, GST_TYPE_LIST); g_value_init (&v, G_TYPE_STRING); g_value_set_string (&v, GST_AUDIO_NE (S8)); - gst_value_array_append_value (&v_arr, &v); + gst_value_list_append_value (&v_list, &v); g_value_set_string (&v, GST_AUDIO_NE (S16)); - gst_value_array_append_value (&v_arr, &v); + gst_value_list_append_value (&v_list, &v); g_value_set_string (&v, GST_AUDIO_NE (S24)); - gst_value_array_append_value (&v_arr, &v); + gst_value_list_append_value (&v_list, &v); g_value_set_string (&v, GST_AUDIO_NE (S32)); - gst_value_array_append_value (&v_arr, &v); + gst_value_list_append_value (&v_list, &v); g_value_unset (&v); s = gst_structure_new_empty ("audio/x-raw"); - gst_structure_set_value (s, "format", &v_arr); - g_value_unset (&v_arr); + gst_structure_set_value (s, "format", &v_list); + g_value_unset (&v_list); gst_structure_set (s, "layout", G_TYPE_STRING, "interleaved", "rate", GST_TYPE_INT_RANGE, 1, 655350, NULL);