mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
queue2: stop waiting for more data after EOS
When we have EOS, read the remaining bytes in the buffer and make sure we don't wait for more data. Also clip the output buffer to the amount of remaining bytes.
This commit is contained in:
parent
9a1185673e
commit
67ccad0621
1 changed files with 2 additions and 0 deletions
|
@ -1292,6 +1292,8 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
|
|||
"EOS hit but read %" G_GUINT64_FORMAT " bytes that we have",
|
||||
level);
|
||||
read_length = level;
|
||||
remaining = level;
|
||||
length = level;
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (queue,
|
||||
"EOS hit and we don't have any requested data");
|
||||
|
|
Loading…
Reference in a new issue