summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 301b7ba)
raw | patch | inline | side by side (parent: 301b7ba)
author | Wim Taymans <wim.taymans@gmail.com> | |
Mon, 24 Mar 2008 14:08:22 +0000 (14:08 +0000) | ||
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Thu, 29 Oct 2009 10:17:15 +0000 (11:17 +0100) |
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.
* 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.
gst/playback/gstqueue2.c | patch | blob | history |
index 9703e5cf9ab33851adc271ab34d323275efb5017..694360a7cc6131617e0679eb50eaa64ee1610d38 100644 (file)
--- a/gst/playback/gstqueue2.c
+++ b/gst/playback/gstqueue2.c
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))