From e14c133587343c2298eccf2a88afe5455ae4cb51 Mon Sep 17 00:00:00 2001
From: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date: Wed, 02 Feb 2011 14:35:45 +0000
Subject: queue2: properly identity dequeued event as such

... which avoids terminating with ERROR rather than UNEXPECTED.
---
(limited to 'plugins/elements/gstqueue2.c')

diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c
index 5d70f89..956f2b9 100644
--- a/plugins/elements/gstqueue2.c
+++ b/plugins/elements/gstqueue2.c
@@ -1927,6 +1927,8 @@ gst_queue2_locked_dequeue (GstQueue2 * queue, gboolean * is_buffer)
   } else if (GST_IS_EVENT (item)) {
     GstEvent *event = GST_EVENT_CAST (item);
 
+    *is_buffer = FALSE;
+
     GST_CAT_LOG_OBJECT (queue_dataflow, queue,
         "retrieved event %p from queue", event);
 
--
cgit v0.9.0.2-2-gbebe
