Fix multiqueue leaking buffers and events when downstream or the queue are flushing...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 6 Jun 2007 18:11:10 +0000 (18:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 6 Jun 2007 18:11:10 +0000 (18:11 +0000)
commit2a3d26e66e6e7d0c143eb197be6b8fe6428bd4bc
tree74174be67191e537f256a57121451b347191a2d8
parent7b9fb5505fea7b5d7546aae04446366de252d09e
Fix multiqueue leaking buffers and events when downstream or the queue are flushing. Make refcounting assumptions exp...

Original commit message from CVS:
* libs/gst/base/gstdataqueue.c:
* libs/gst/base/gstdataqueue.h:
* plugins/elements/gstmultiqueue.c: (gst_single_queue_push_one),
(gst_multi_queue_item_new), (gst_multi_queue_chain),
(gst_multi_queue_sink_event):
* tests/check/elements/multiqueue.c: (multiqueue_suite):
Fix multiqueue leaking buffers and events when downstream or the
queue are flushing. Make refcounting assumptions explicit and
document them (shouldn't break existing code that uses it other than
maybe leak miniobjects, but that already happens anyway). Add unit
test for the most common flushing case. Fixes #423700.
ChangeLog
libs/gst/base/gstdataqueue.c
libs/gst/base/gstdataqueue.h
plugins/elements/gstmultiqueue.c
tests/check/elements/multiqueue.c