From 773b7f61f2c48f962d4c7fbb8888526e9435483a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 Sep 2022 12:20:58 +0300 Subject: [PATCH] rtpjitterbuffer: Make it more explicit that update_rtx_timers() takes ownership of the passed in timer It is not valid anymore afterwards and must not be used, otherwise an already freed pointer might be used. Part-of: --- .../gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c index e41699943f..8b3b5979c5 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpjitterbuffer.c @@ -3295,7 +3295,7 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent, /* update rtx timers */ if (priv->do_retransmission) update_rtx_timers (jitterbuffer, seqnum, dts, pts, do_next_seqnum, is_rtx, - timer); + g_steal_pointer (&timer)); /* we had an unhandled SR, handle it now */ if (priv->last_sr)