summaryrefslogblamecommitdiff
path: root/user/gst-plugins-good/fix-arm-test-alignment.patch
blob: 673ec7d83f95d0562771c02b5f75e76d3407d8cc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                
diff -ur a/tests/check/elements/rtpbin_buffer_list.c b/tests/check/elements/rtpbin_buffer_list.c
--- a/tests/check/elements/rtpbin_buffer_list.c	2023-06-12 16:31:48.734887801 +0000
+++ b/tests/check/elements/rtpbin_buffer_list.c	2023-06-12 16:54:58.883822559 +0000
@@ -236,10 +236,8 @@
    * most likely be changed in gstrtpbin.
    */
   fail_unless (info.data != NULL);
-  fail_unless_equals_uint64 (*(guint64 *) info.data,
-      *(guint64 *) rtp_header[index]);
-  fail_unless (*(guint16 *) (info.data + 12) ==
-      *(guint16 *) (rtp_header[index] + 12));
+  fail_unless (memcmp(info.data     , rtp_header[index]     ,              8) == 0);
+  fail_unless (memcmp(info.data + 12, rtp_header[index] + 12, info.size - 12) == 0);
 
   gst_memory_unmap (memory, &info);
   gst_memory_unref (memory);