mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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.
This commit is contained in:
parent
fa9adbe986
commit
fa710a59aa
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
INPUT_UNLOCK (dbin);
|
||||
}
|
||||
INPUT_UNLOCK (dbin);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue