basesink: Use the average durations based on timestamps for the QoS proportion when...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 8 Sep 2016 12:19:38 +0000 (15:19 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 8 Sep 2016 12:19:38 +0000 (15:19 +0300)
commitc1bd6677c6a7b7dcc3e402089ddf6b01b1cf6c1f
tree710603f58ddea9c32f019b11e70f1a786fe03d0c
parent7315a07bc8c60e55f008f75e8dfd8d156c6b93b3
basesink: Use the average durations based on timestamps for the QoS proportion when doing trickmodes

The durations of the buffers are (usually) assuming that no frames are being
dropped and are just the durations coming from the stream. However if we do
trickmodes, frames are being dropped regularly especially if only key units
are supposed to be played.

Fixes completely bogus QoS proportion values in the above case.
libs/gst/base/gstbasesink.c