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:
Tim-Philipp Müller 2010-10-24 18:50:30 +01:00
parent 7fcd7d8cf2
commit ac70239020

View file

@ -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;
}
}