From 8e1f70473b50b06e3783e6d4b0c7299964830f19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 9 May 2013 12:50:20 +0200 Subject: [PATCH] queue: Store sticky events on the srcpad if we're dropping them because of leaking --- plugins/elements/gstqueue.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index e0e70302f3..71c710579c 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -913,6 +913,12 @@ gst_queue_leak_downstream (GstQueue * queue) GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, "queue is full, leaking item %p on downstream end", leak); + if (GST_IS_EVENT (leak) && GST_EVENT_IS_STICKY (leak)) { + GST_CAT_DEBUG_OBJECT (queue_dataflow, queue, + "Storing sticky event %s on srcpad", GST_EVENT_TYPE_NAME (leak)); + gst_pad_store_sticky_event (queue->srcpad, GST_EVENT_CAST (leak)); + } + if (!GST_IS_QUERY (leak)) gst_mini_object_unref (leak); -- 2.34.1