mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/playback/gstqueue2.c: The queue is never filled when there are no buffers in the queue at all.
Original commit message from CVS: * gst/playback/gstqueue2.c: (gst_queue_is_filled): The queue is never filled when there are no buffers in the queue at all. Fixes #523993.
This commit is contained in:
parent
ad1cbe1edd
commit
03e571d945
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/playback/gstqueue2.c: (gst_queue_is_filled):
|
||||||
|
The queue is never filled when there are no buffers in the queue at all.
|
||||||
|
Fixes #523993.
|
||||||
|
|
||||||
2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst/playback/gstplaybin2.c: (gst_play_bin_class_init),
|
* gst/playback/gstplaybin2.c: (gst_play_bin_class_init),
|
||||||
|
|
|
@ -1288,6 +1288,10 @@ gst_queue_is_filled (GstQueue * queue)
|
||||||
if (QUEUE_IS_USING_TEMP_FILE (queue))
|
if (QUEUE_IS_USING_TEMP_FILE (queue))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
/* we are never filled when we have no buffers at all */
|
||||||
|
if (queue->cur_level.buffers == 0)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
#define CHECK_FILLED(format) ((queue->max_level.format) > 0 && \
|
#define CHECK_FILLED(format) ((queue->max_level.format) > 0 && \
|
||||||
(queue->cur_level.format) >= (queue->max_level.format))
|
(queue->cur_level.format) >= (queue->max_level.format))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue