Commit 6a06c610 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

gst/gstqueue.c: query if buffers are inside the pool, ignore events

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
parent 1e82f617
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),
......
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment