mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mplex: Don't start task (yet/again) on pad release if we're in READY or NULL
Fixes spurious segfault in unit test, where the task was started again during shutdown when all pads were removed... and was then still running while the element was finalized.
This commit is contained in:
parent
e786f737ae
commit
0d06f4bc7c
1 changed files with 2 additions and 1 deletions
|
@ -676,7 +676,8 @@ gst_mplex_release_pad (GstElement * element, GstPad * pad)
|
|||
g_free (padname);
|
||||
|
||||
/* may now be up to us to get things going */
|
||||
gst_mplex_start_task (mplex);
|
||||
if (GST_STATE (element) > GST_STATE_READY)
|
||||
gst_mplex_start_task (mplex);
|
||||
GST_MPLEX_MUTEX_UNLOCK (mplex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue