mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtdemux: fix deadlock in error code path
GST_ELEMENT_ERROR must not be called with the object lock held, since it will call gst_object_get_parent() internally, which takes the object lock as well.
This commit is contained in:
parent
7fcd7d8cf2
commit
ac70239020
1 changed files with 1 additions and 1 deletions
|
@ -4808,9 +4808,9 @@ out_of_samples:
|
|||
}
|
||||
corrupt_file:
|
||||
{
|
||||
GST_OBJECT_UNLOCK (qtdemux);
|
||||
GST_ELEMENT_ERROR (qtdemux, STREAM, DEMUX,
|
||||
(_("This file is corrupt and cannot be played.")), (NULL));
|
||||
GST_OBJECT_UNLOCK (qtdemux);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue