gst/gstqueue.c: Fix double unlock (#169073).

Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_chain):
Fix double unlock (#169073).
This commit is contained in:
Ronald S. Bultje 2005-03-03 09:56:26 +00:00
parent d859108ac1
commit 02cb914495
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-03-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstqueue.c: (gst_queue_chain):
Fix double unlock (#169073).
2005-03-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstqueue.c: (gst_queue_locked_flush), (gst_queue_chain),

View file

@ -661,11 +661,11 @@ restart:
GstScheduler *sched;
GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "interrupted");
GST_QUEUE_MUTEX_UNLOCK;
sched = gst_pad_get_scheduler (queue->sinkpad);
if (!sched || gst_scheduler_interrupt (sched, GST_ELEMENT (queue))) {
goto ignore_interrupt;
}
GST_QUEUE_MUTEX_UNLOCK;
/* if we got here because we were unlocked after a
* flush, we don't need to add the buffer to the
* queue again */

View file

@ -661,11 +661,11 @@ restart:
GstScheduler *sched;
GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "interrupted");
GST_QUEUE_MUTEX_UNLOCK;
sched = gst_pad_get_scheduler (queue->sinkpad);
if (!sched || gst_scheduler_interrupt (sched, GST_ELEMENT (queue))) {
goto ignore_interrupt;
}
GST_QUEUE_MUTEX_UNLOCK;
/* if we got here because we were unlocked after a
* flush, we don't need to add the buffer to the
* queue again */