queue2: Handle buffering levels on NOT_LINKED
authorEdward Hervey <edward@centricular.com>
Mon, 7 Aug 2017 10:24:37 +0000 (12:24 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 7 Aug 2017 13:20:55 +0000 (15:20 +0200)
commit4312119d167405f726c39ec5517d7124e1e99444
tree5a4ad3e9ebb7aeb2ecef80257894503a6b3ca151
parent3af87f437eac21660744033999866553473d7906
queue2: Handle buffering levels on NOT_LINKED

When downstream returns NOT_LINKED, we return the buffering level
as being 100%.

Since the queue is no longer being consumed/used downstream, we
want applications to essentially "ignore" this queue for buffering
purposes.

If other streams are still being used, those stream buffering levels
will be used. If none are used, upstream will post an error message
on the bus indicating no streams are used.

https://bugzilla.gnome.org/show_bug.cgi?id=785799
plugins/elements/gstqueue2.c