mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
multiqueue: check byte range even when we have timestamps
As found by thaytan on IRC. Also check the byte limit, even if we have timestamps because there might just not be a time limit.
This commit is contained in:
parent
6e633cbe33
commit
5a77f18278
1 changed files with 3 additions and 7 deletions
|
@ -1385,13 +1385,9 @@ single_queue_check_full (GstDataQueue * dataq, guint visible, guint bytes,
|
|||
if (IS_FILLED (visible, visible))
|
||||
return TRUE;
|
||||
|
||||
if (sq->cur_time != 0) {
|
||||
/* if we have valid time in the queue, check */
|
||||
res = IS_FILLED (time, sq->cur_time);
|
||||
} else {
|
||||
/* no valid time, check bytes */
|
||||
res = IS_FILLED (bytes, bytes);
|
||||
}
|
||||
/* check time or bytes */
|
||||
res = IS_FILLED (time, sq->cur_time) || IS_FILLED (bytes, bytes);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue