tests/check/elements/audioconvert.c: interpret the out[] buffer in the order the...
authorThomas Vander Stichele <thomas@apestaart.org>
Sat, 29 Apr 2006 13:09:52 +0000 (13:09 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sat, 29 Apr 2006 13:09:52 +0000 (13:09 +0000)
Original commit message from CVS:

* 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

ChangeLog
tests/check/elements/audioconvert.c

index e22eaac..f86cb88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,15 @@
 
        * 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  <thomas at apestaart dot org>
+
+       * tests/check/elements/audioconvert.c: (verify_convert),
+       (GST_START_TEST):
          when a test fails, give an indication of which it is
 
 2006-04-29  Thomas Vander Stichele  <thomas at apestaart dot org>
index b1dcaf0..6172abe 100644 (file)
@@ -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)
         );
   }