GNOME Bugzilla – Bug 567982
"queued_bytes" field isn't updated while flushing the queue in gstappsrc.c
Last modified: 2009-01-23 10:10:05 UTC
The "queued_bytes" field is not updated while flushing the queue in gstappsrc.c This could cause problems indicating the queue has some data even when queue has been flushed.
Created attachment 126583 [details] [review] Proposed Patch
appsrc and friends are in gst-plugins-base now, changing component.
or even: Index: gstappsrc.c =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/app/gstappsrc.c,v retrieving revision 1.18 diff -u -B -b -p -r1.18 gstappsrc.c --- gstappsrc.c 6 Jan 2009 11:10:29 -0000 1.18 +++ gstappsrc.c 16 Jan 2009 17:00:07 -0000 @@ -501,6 +501,7 @@ gst_app_src_flush_queued (GstAppSrc * sr while ((buf = g_queue_pop_head (src->priv->queue))) gst_buffer_unref (buf); + src->priv->queued_bytes = 0; } static void
commit f300cd83bfc86832bf276af955c058ccdf999efe Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Jan 23 11:07:05 2009 +0100 Reset queued_bytes counter when flushing Set the amount of queued bytes in the internal queue back to 0 when we clear the queue. Fixes #567982