gst/gstqueue.c: query if buffers are inside the pool, ignore events
authorBenjamin Otte <otte@gnome.org>
Wed, 14 Jan 2004 01:50:31 +0000 (01:50 +0000)
committerBenjamin Otte <otte@gnome.org>
Wed, 14 Jan 2004 01:50:31 +0000 (01:50 +0000)
Original commit message from CVS:
2004-01-14  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* gst/gstqueue.c: (gst_queue_getcaps), (gst_queue_link):
query if buffers are inside the pool, ignore events

ChangeLog
gst/gstqueue.c
plugins/elements/gstqueue.c

index 142d6f0..584f5b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-14  Benjamin Otte  <in7y118@public.uni-hamburg.de>
+
+       * gst/gstqueue.c: (gst_queue_getcaps), (gst_queue_link):
+         query if buffers are inside the pool, ignore events
+
 2004-01-13  Benjamin Otte  <in7y118@public.uni-hamburg.de>
 
        * gst/gstclock.c: (gst_clock_class_init), (gst_clock_init),
index 5f09408..50cc568 100644 (file)
@@ -322,7 +322,7 @@ gst_queue_getcaps (GstPad *pad)
 
   queue = GST_QUEUE (gst_pad_get_parent (pad));
 
-  if (queue->queue->length > 0) {
+  if (queue->cur_level.bytes > 0) {
     return gst_caps_copy (queue->negotiated_caps);
   }
 
@@ -337,7 +337,7 @@ gst_queue_link (GstPad *pad, const GstCaps *caps)
 
   queue = GST_QUEUE (gst_pad_get_parent (pad));
 
-  if (queue->queue->length > 0) {
+  if (queue->cur_level.bytes > 0) {
     if (gst_caps_is_equal_fixed (caps, queue->negotiated_caps)) {
       return GST_PAD_LINK_OK;
     }
index 5f09408..50cc568 100644 (file)
@@ -322,7 +322,7 @@ gst_queue_getcaps (GstPad *pad)
 
   queue = GST_QUEUE (gst_pad_get_parent (pad));
 
-  if (queue->queue->length > 0) {
+  if (queue->cur_level.bytes > 0) {
     return gst_caps_copy (queue->negotiated_caps);
   }
 
@@ -337,7 +337,7 @@ gst_queue_link (GstPad *pad, const GstCaps *caps)
 
   queue = GST_QUEUE (gst_pad_get_parent (pad));
 
-  if (queue->queue->length > 0) {
+  if (queue->cur_level.bytes > 0) {
     if (gst_caps_is_equal_fixed (caps, queue->negotiated_caps)) {
       return GST_PAD_LINK_OK;
     }