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
This commit is contained in:
Benjamin Otte 2004-01-14 01:50:31 +00:00
parent 1e82f617e4
commit 6a06c610da
3 changed files with 9 additions and 4 deletions

View file

@ -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),

View 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;
}

View 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;
}