plugins/elements/gstqueue.c: Since we're not called only from the chain function...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 30 Apr 2008 14:20:48 +0000 (14:20 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 30 Apr 2008 14:20:48 +0000 (14:20 +0000)
commit449a4261691fb8f02e3262e6f8cf8ed3b8706b2b
tree6936ed490a856acecefb5fd53a2c2e5d92395674
parent0da9f87257ebedf0273904f81a65c7fc3452a25e
plugins/elements/gstqueue.c: Since we're not called only from the chain function any longer, we can't assume that the...

Original commit message from CVS:
* plugins/elements/gstqueue.c: (gst_queue_leak_downstream):
Since we're not called only from the chain function any longer,
we can't assume that there's always data in the queue, so move
the is_full check to the beginning of the loop (otherwise we'd
hit the assert when changing the limit properties while the
queue is empty or not running yet).
Also, only set a discont if items were actually removed from
the queue.
* tests/check/elements/queue.c: (test_leaky_downstream):
Test case for the above.
ChangeLog
plugins/elements/gstqueue.c
tests/check/elements/queue.c