Reset queued_bytes counter when flushing
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 23 Jan 2009 10:07:05 +0000 (11:07 +0100)
committerWim Taymans <wim@wtay.(none)>
Fri, 23 Jan 2009 10:11:31 +0000 (11:11 +0100)
Set the amount of queued bytes in the internal queue back to 0 when we clear the
queue.
Fixes #567982

gst-libs/gst/app/gstappsrc.c

index 0df865e..52b0b87 100644 (file)
@@ -501,6 +501,7 @@ gst_app_src_flush_queued (GstAppSrc * src)
 
   while ((buf = g_queue_pop_head (src->priv->queue)))
     gst_buffer_unref (buf);
+  src->priv->queued_bytes = 0;
 }
 
 static void