diff --git a/ChangeLog b/ChangeLog index e22eaacc70..f86cb88c4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-04-29 Thomas Vander Stichele + + * tests/check/elements/audioconvert.c: (verify_convert), + (GST_START_TEST): + interpret the out[] buffer in the order the bytes are actually + put in, which is LITTLE_ENDIAN, not BYTE_ORDER. + Other tests should use BYTE_ORDER since the array is filled in + with actual values + 2006-04-29 Thomas Vander Stichele * tests/check/elements/audioconvert.c: (verify_convert), diff --git a/tests/check/elements/audioconvert.c b/tests/check/elements/audioconvert.c index b1dcaf0940..6172abe3bb 100644 --- a/tests/check/elements/audioconvert.c +++ b/tests/check/elements/audioconvert.c @@ -308,11 +308,13 @@ GST_START_TEST (test_int_conversion) { gint8 in[] = { 0, 1, 127 }; guint8 out[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x7f }; + /* out has the bytes in little-endian, so that's how they should be + * interpreted during conversion */ RUN_CONVERSION ("8 to 24 signed", in, get_int_caps (1, "BYTE_ORDER", 8, 8, - TRUE), out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE) + TRUE), out, get_int_caps (1, "LITTLE_ENDIAN", 24, 24, TRUE) ); - RUN_CONVERSION ("24 signed to 8", out, get_int_caps (1, "BYTE_ORDER", 24, + RUN_CONVERSION ("24 signed to 8", out, get_int_caps (1, "LITTLE_ENDIAN", 24, 24, TRUE), in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE) ); }