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:
Wim Taymans 2012-04-05 10:03:02 +02:00
parent 9a1185673e
commit 67ccad0621

View file

@ -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");