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
This commit is contained in:
Wim Taymans 2009-01-23 11:07:05 +01:00 committed by Wim Taymans
parent 336e1346e4
commit 26256b95c8

View 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