From: Tim-Philipp Müller Date: Fri, 19 Jan 2018 18:50:07 +0000 (+0000) Subject: tests: audioconvert: fix up check for lost channel positions X-Git-Tag: 1.16.2~909 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab87478bdc08509fa64f31e6383c483b1e10c735;p=platform%2Fupstream%2Fgst-plugins-base.git tests: audioconvert: fix up check for lost channel positions The caps field is channel-mask these days, so that code path was never active. --- diff --git a/tests/check/elements/audioconvert.c b/tests/check/elements/audioconvert.c index d157ef8..c3722aa 100644 --- a/tests/check/elements/audioconvert.c +++ b/tests/check/elements/audioconvert.c @@ -465,8 +465,8 @@ verify_convert (const gchar * which, void *in, int inlength, fail_unless (gst_structure_get_int (out_s, "channels", &out_chans)); /* positions for 1 and 2 channels are implicit if not provided */ - if (out_chans > 2 && gst_structure_has_field (in_s, "channel-positions")) { - if (!gst_structure_has_field (out_s, "channel-positions")) { + if (out_chans > 2 && gst_structure_has_field (in_s, "channel-mask")) { + if (!gst_structure_has_field (out_s, "channel-mask")) { gst_printerrln ("In : %" GST_PTR_FORMAT, in_s); gst_printerrln ("Out : %" GST_PTR_FORMAT, out_s); g_error ("Channel layout got lost somewhere\n");