GNOME Bugzilla – Bug 530637
queue leak on capacity change
Last modified: 2008-04-30 09:36:12 UTC
Please describe the problem: When a max capacity property (max-size-*) is decreased on a downstream leaky queue , it does not unref buffers until a new buffer is pushed on its sink pad, even though it could handle downstream leak immediately. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 110133 [details] [review] queue patch
Patch by: Jonas Holmberg <jonas dot holmberg at axis dot com> * plugins/elements/gstqueue.c: (gst_queue_leak_downstream), (gst_queue_chain), (queue_capacity_change), (gst_queue_set_property): When changing thr max capacity of a leaky queue, immediatly drop buffers instead of waiting for a push on the sinkpad. Fixes #530637.