mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +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
|
||||
* reuse the logic below to stop buffering */
|
||||
percent = 100;
|
||||
GST_LOG_OBJECT (queue, "we are EOS");
|
||||
} else {
|
||||
/* 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 (QUEUE_IS_USING_QUEUE (queue)) {
|
||||
/* update the buffering status */
|
||||
update_buffering (queue);
|
||||
/* update the buffering status */
|
||||
update_buffering (queue);
|
||||
|
||||
if (QUEUE_IS_USING_QUEUE (queue)) {
|
||||
g_queue_push_tail (queue->queue, item);
|
||||
} else {
|
||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (item));
|
||||
|
|
Loading…
Reference in a new issue