mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
rtpjitterbuffer test: Stop jitterbuffer before pads to avoid race
The teardown of the pads checks the refcount, but there are timers inside the jitterbuffer that can push things, so if we're not lucky, things could be pushed while the pads are being shut down. Putting the jitterbuffer to NULL first avoids this.
This commit is contained in:
parent
3de2c28fc1
commit
c6e8325945
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ cleanup_jitterbuffer (GstElement * jitterbuffer)
|
|||
|
||||
gst_pad_set_active (mysrcpad, FALSE);
|
||||
gst_pad_set_active (mysinkpad, FALSE);
|
||||
gst_element_set_state (jitterbuffer, GST_STATE_NULL);
|
||||
gst_check_teardown_src_pad (jitterbuffer);
|
||||
gst_check_teardown_sink_pad (jitterbuffer);
|
||||
gst_check_teardown_element (jitterbuffer);
|
||||
|
|
Loading…
Reference in a new issue