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:
parent
336e1346e4
commit
26256b95c8
@ -501,6 +501,7 @@ gst_app_src_flush_queued (GstAppSrc * src)
|
|||||||
|
|
||||||
while ((buf = g_queue_pop_head (src->priv->queue)))
|
while ((buf = g_queue_pop_head (src->priv->queue)))
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
|
src->priv->queued_bytes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user