summaryrefslogblamecommitdiff
path: root/user/gst-plugins-good/drop-messages-interval-type.patch
blob: ebf0c1e5a38b0ece1eec995387331bd4232134d7 (plain) (tree)




























                                                                                                           
Upstream-URL: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3580

From e91ab24c5777986926bea5e9f0c832f606c9fb52 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Fri, 16 Dec 2022 01:00:46 -0600
Subject: [PATCH] tests: Cast drop-messages-interval type properly

The rtpjitterbuffer test drop_messages_interval uses a GstClockTime for
the message drop interval.  This property is defined as a guint.  On
systems with 64-bit time_t but 32-bit uint, this can cause the
g_object_set function to fail to read the arguments properly.

Fixes: #1656
---
 .../gst-plugins-good/tests/check/elements/rtpjitterbuffer.c     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--- gst-plugins-good-1.20.2/tests/check/elements/rtpjitterbuffer.c.old	2022-05-02 22:29:29.000000000 +0000
+++ gst-plugins-good-1.20.2/tests/check/elements/rtpjitterbuffer.c	2022-12-16 07:04:53.663472650 +0000
@@ -3097,7 +3097,7 @@
   guint num_sent_msg = 0;
 
   g_object_set (h->element, "post-drop-messages", TRUE, NULL);
-  g_object_set (h->element, "drop-messages-interval", interval, NULL);
+  g_object_set (h->element, "drop-messages-interval", (guint)interval, NULL);
   next_seqnum = construct_deterministic_initial_state (h, latency_ms);
 
   /* Create a bus to get the drop message on */