mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
queue2: always update buffering status
Update the buffering status even when we are not using a queue so that EOS can properly finish the buffering.
This commit is contained in:
parent
60fba4df8b
commit
e3176a31e9
1 changed files with 4 additions and 3 deletions
|
@ -781,6 +781,7 @@ update_buffering (GstQueue2 * queue)
|
||||||
/* on EOS we are always 100% full, we set the var here so that it we can
|
/* on EOS we are always 100% full, we set the var here so that it we can
|
||||||
* reuse the logic below to stop buffering */
|
* reuse the logic below to stop buffering */
|
||||||
percent = 100;
|
percent = 100;
|
||||||
|
GST_LOG_OBJECT (queue, "we are EOS");
|
||||||
} else {
|
} else {
|
||||||
/* figure out the percent we are filled, we take the max of all formats. */
|
/* figure out the percent we are filled, we take the max of all formats. */
|
||||||
|
|
||||||
|
@ -1823,10 +1824,10 @@ gst_queue2_locked_enqueue (GstQueue2 * queue, gpointer item)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
if (QUEUE_IS_USING_QUEUE (queue)) {
|
/* update the buffering status */
|
||||||
/* update the buffering status */
|
update_buffering (queue);
|
||||||
update_buffering (queue);
|
|
||||||
|
|
||||||
|
if (QUEUE_IS_USING_QUEUE (queue)) {
|
||||||
g_queue_push_tail (queue->queue, item);
|
g_queue_push_tail (queue->queue, item);
|
||||||
} else {
|
} else {
|
||||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (item));
|
gst_mini_object_unref (GST_MINI_OBJECT_CAST (item));
|
||||||
|
|
Loading…
Reference in a new issue