From 03e571d94598cdc13c6fac66d288f17d4897b26d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 24 Mar 2008 14:08:22 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/playback/gstqueue2.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 61b8c55570..0311124429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-24 Wim Taymans + + * 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 * gst/playback/gstplaybin2.c: (gst_play_bin_class_init), diff --git a/gst/playback/gstqueue2.c b/gst/playback/gstqueue2.c index 9703e5cf9a..694360a7cc 100644 --- a/gst/playback/gstqueue2.c +++ b/gst/playback/gstqueue2.c @@ -1288,6 +1288,10 @@ gst_queue_is_filled (GstQueue * queue) if (QUEUE_IS_USING_TEMP_FILE (queue)) 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 && \ (queue->cur_level.format) >= (queue->max_level.format))