Commit 4965aa99 authored by Wonchul Lee's avatar Wonchul Lee Committed by Jan Schmidt

playbin3: Fix deadlock when adding multiple parsebin

https://bugzilla.gnome.org/show_bug.cgi?id=773131
parent 780a5884
......@@ -4523,6 +4523,7 @@ urisrc_pad_added (GstElement * urisrc, GstPad * pad, GstSourceGroup * group)
sinkpad = NULL;
}
}
GST_SOURCE_GROUP_UNLOCK (group);
if (sinkpad == NULL) {
/* Auxiliary stream, request a new pad from decodebin */
......@@ -4541,7 +4542,6 @@ urisrc_pad_added (GstElement * urisrc, GstPad * pad, GstSourceGroup * group)
if (GST_PAD_LINK_FAILED (res))
goto link_failed;
}
GST_SOURCE_GROUP_UNLOCK (group);
return;
link_failed:
......@@ -4549,7 +4549,6 @@ link_failed:
GST_ERROR_OBJECT (playbin,
"failed to link pad %s:%s to decodebin, reason %s (%d)",
GST_DEBUG_PAD_NAME (pad), gst_pad_link_get_name (res), res);
GST_SOURCE_GROUP_UNLOCK (group);
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment