mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
decodebin3: Protect input freeing with the input lock
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
parent
f091d2445f
commit
e276d3c836
1 changed files with 2 additions and 0 deletions
|
@ -973,6 +973,7 @@ static void
|
|||
free_input (GstDecodebin3 * dbin, DecodebinInput * input)
|
||||
{
|
||||
GST_DEBUG ("Freeing input %p", input);
|
||||
INPUT_LOCK (dbin);
|
||||
gst_ghost_pad_set_target (GST_GHOST_PAD (input->ghost_sink), NULL);
|
||||
gst_element_remove_pad (GST_ELEMENT (dbin), input->ghost_sink);
|
||||
if (input->parsebin) {
|
||||
|
@ -986,6 +987,7 @@ free_input (GstDecodebin3 * dbin, DecodebinInput * input)
|
|||
if (input->collection)
|
||||
gst_object_unref (input->collection);
|
||||
g_free (input);
|
||||
INPUT_UNLOCK (dbin);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue