queue2: Don't report 0% unless empty
authorJan Schmidt <jan@centricular.com>
Thu, 5 Nov 2015 16:02:42 +0000 (03:02 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 2 Dec 2015 08:32:12 +0000 (19:32 +1100)
commit725a71ea0c99fcdddddf9e97a4392a5b825f598b
treec61ad66883e750e8911a6011f51e90d012999f2c
parente5d5f99a9ed749f99a93e8afbfa722f652febaf7
queue2: Don't report 0% unless empty

When preparing a buffering message, don't report 0% if there
is any bytes left in the queue at all. We still have something
to push, so don't tell the app to start buffering - maybe
we'll get more data before actually running dry.
plugins/elements/gstqueue2.c