mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
rtpjitterbuffer: Clear clock master before unreffing
Make sure to clear any master clock on the media_clock before unreffing it to release the timer callback that's updating the clock and keeping it reffed.
This commit is contained in:
parent
2479ccac7d
commit
53b3f2ddbb
1 changed files with 4 additions and 1 deletions
|
@ -103,8 +103,11 @@ rtp_jitter_buffer_finalize (GObject * object)
|
|||
if (jbuf->media_clock_synced_id)
|
||||
g_signal_handler_disconnect (jbuf->media_clock,
|
||||
jbuf->media_clock_synced_id);
|
||||
if (jbuf->media_clock)
|
||||
if (jbuf->media_clock) {
|
||||
/* Make sure to clear any clock master before releasing the clock */
|
||||
gst_clock_set_master (jbuf->media_clock, NULL);
|
||||
gst_object_unref (jbuf->media_clock);
|
||||
}
|
||||
|
||||
if (jbuf->pipeline_clock)
|
||||
gst_object_unref (jbuf->pipeline_clock);
|
||||
|
|
Loading…
Reference in a new issue