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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2996>
This commit is contained in:
Sebastian Dröge 2022-09-02 12:20:58 +03:00 committed by GStreamer Marge Bot
parent 646766629f
commit 773b7f61f2

View file

@ -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)