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:
Wim Taymans 2009-06-09 13:07:34 +02:00
parent 6e633cbe33
commit 5a77f18278

View file

@ -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;
}