summaryrefslogtreecommitdiff
path: root/user/gst-plugins-good/fix-arm-test-alignment.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-06-12 17:01:25 +0000
committerZach van Rijn <me@zv.io>2023-06-12 17:03:06 +0000
commit87761f90bac72283c35725a215a48d8e7b1a101c (patch)
treed1331556ac79578035079407a2a748bcce954e0a /user/gst-plugins-good/fix-arm-test-alignment.patch
parentd688a3f21ac74e54b8a0d758329d1f0361500dd8 (diff)
downloadpackages-87761f90bac72283c35725a215a48d8e7b1a101c.tar.gz
packages-87761f90bac72283c35725a215a48d8e7b1a101c.tar.bz2
packages-87761f90bac72283c35725a215a48d8e7b1a101c.tar.xz
packages-87761f90bac72283c35725a215a48d8e7b1a101c.zip
user/gst-plugins-good: patch broken test. fixes #1025.
Diffstat (limited to 'user/gst-plugins-good/fix-arm-test-alignment.patch')
-rw-r--r--user/gst-plugins-good/fix-arm-test-alignment.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/gst-plugins-good/fix-arm-test-alignment.patch b/user/gst-plugins-good/fix-arm-test-alignment.patch
new file mode 100644
index 000000000..673ec7d83
--- /dev/null
+++ b/user/gst-plugins-good/fix-arm-test-alignment.patch
@@ -0,0 +1,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);