Commit fa710a59 authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey
Browse files

decodebin3: Don't take the lock when creating a new input

We only need to take the input lock when adding/removing
inputs from the list.
parent fa9adbe9
......@@ -940,13 +940,13 @@ gst_decodebin3_request_new_pad (GstElement * element, GstPadTemplate * temp,
/* We are ignoring names for the time being, not sure it makes any sense
* within the context of decodebin3 ... */
INPUT_LOCK (dbin);
input = create_new_input (dbin, FALSE);
if (input) {
INPUT_LOCK (dbin);
dbin->other_inputs = g_list_append (dbin->other_inputs, input);
res = input->ghost_sink;
return res;
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