queue2: Add higher-resolution low/high-watermark properties
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Wed, 3 Aug 2016 13:20:20 +0000 (15:20 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 25 Aug 2016 08:54:33 +0000 (11:54 +0300)
commitdb66cb51b38fbffc2e1fb336a9636b22ec0fe241
treea8f5177f79dab5a42cb2116d6af34cffe6afad6d
parente0f1a9e618e16e887d1d2b94e52ba02ae316fd78
queue2: Add higher-resolution low/high-watermark properties

low/high-watermark are of type double, and given in range 0.0-1.0. This
makes it possible to set low/high watermarks with greater resolution,
which is useful with large queue2 max sizes and watermarks like 0.5%.

Also adding a test to check the fill and watermark level behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=769449
plugins/elements/gstqueue2.c
plugins/elements/gstqueue2.h
tests/check/elements/queue2.c