mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
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:
parent
1e82f617e4
commit
6a06c610da
3 changed files with 9 additions and 4 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue