rtpjitterbuffer: don't use the timer-object after JBUF_UNLOCK
authorHavard Graff <havard@pexip.com>
Mon, 17 Feb 2020 14:03:28 +0000 (15:03 +0100)
committerHavard Graff <havard@pexip.com>
Mon, 17 Feb 2020 14:04:45 +0000 (15:04 +0100)
It could have been freed (rtp_timer_free) in the meantime.

gst/rtpmanager/gstrtpjitterbuffer.c

index 8cf2774..be7f798 100644 (file)
@@ -4102,7 +4102,7 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
       }
 
       if (ret != GST_CLOCK_UNSCHEDULED) {
-        now = timer->timeout + MAX (clock_jitter, 0);
+        now = priv->timer_timeout + MAX (clock_jitter, 0);
         GST_DEBUG_OBJECT (jitterbuffer,
             "sync done, %d, #%d, %" GST_STIME_FORMAT, ret, priv->timer_seqnum,
             GST_STIME_ARGS (clock_jitter));