gst/base/gstbasesink.c: Unlock the PREROLL_LOCK in a failure case.

Original commit message from CVS:
2005-11-24  Michael Smith <msmith@fluendo.com>

* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
Unlock the PREROLL_LOCK in a failure case.
This commit is contained in:
Michael Smith 2005-11-24 12:44:25 +00:00
parent 7b2d3e5536
commit 836eb1dd02
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-11-24 Michael Smith <msmith@fluendo.com>
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
Unlock the PREROLL_LOCK in a failure case.
2005-11-24 Wim Taymans <wim@fluendo.com>
* docs/gst/gstreamer-sections.txt:

View file

@ -748,6 +748,7 @@ preroll_failed:
{
GST_DEBUG_OBJECT (basesink, "preroll failed");
gst_base_sink_preroll_queue_flush (basesink, pad);
GST_PAD_PREROLL_UNLOCK (pad);
GST_DEBUG_OBJECT (basesink, "abort state");
gst_element_abort_state (GST_ELEMENT (basesink));

View file

@ -748,6 +748,7 @@ preroll_failed:
{
GST_DEBUG_OBJECT (basesink, "preroll failed");
gst_base_sink_preroll_queue_flush (basesink, pad);
GST_PAD_PREROLL_UNLOCK (pad);
GST_DEBUG_OBJECT (basesink, "abort state");
gst_element_abort_state (GST_ELEMENT (basesink));