From: Sebastian Dröge Date: Wed, 21 May 2008 07:46:02 +0000 (+0000) Subject: tests/check/elements/audioconvert.c: Add another test that checks if conversion betwe... X-Git-Tag: RELEASE-0_10_20~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74d46a9977bce9ba5cdac7b0ff6e56bca4f5a373;p=platform%2Fupstream%2Fgst-plugins-base.git tests/check/elements/audioconvert.c: Add another test that checks if conversion between standard 1 and 2 channel layo... Original commit message from CVS: * tests/check/elements/audioconvert.c: (GST_START_TEST): Add another test that checks if conversion between standard 1 and 2 channel layouts with and without positions set is working. --- diff --git a/ChangeLog b/ChangeLog index fb19bc410..55e644241 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-21 Sebastian Dröge + + * tests/check/elements/audioconvert.c: (GST_START_TEST): + Add another test that checks if conversion between standard 1 and 2 + channel layouts with and without positions set is working. + 2008-05-21 Sebastian Dröge * gst-libs/gst/audio/multichannel.c: diff --git a/tests/check/elements/audioconvert.c b/tests/check/elements/audioconvert.c index 511475252..0bd2affc4 100644 --- a/tests/check/elements/audioconvert.c +++ b/tests/check/elements/audioconvert.c @@ -846,6 +846,19 @@ GST_START_TEST (test_multichannel_conversion) in_caps, out, out_caps); } + { + gint16 in[] = { 1, 2 }; + gint16 out[] = { 1, 1, 2, 2 }; + GstCaps *in_caps = get_int_caps (1, "BYTE_ORDER", 16, 16, TRUE); + GstCaps *out_caps = get_int_caps (2, "BYTE_ORDER", 16, 16, TRUE); + + RUN_CONVERSION ("1 channels to 2 with standard layout and no positions set", + in, gst_caps_copy (in_caps), out, gst_caps_copy (out_caps)); + + RUN_CONVERSION ("2 channels to 1 with standard layout and no positions set", + out, out_caps, in, in_caps); + } + { gint16 in[] = { 1, 2 }; gint16 out[] = { 1, 0, 2, 0 };