basesink: clamp reported position based on direction
authorEdward Hervey <bilboed@bilboed.com>
Tue, 7 Oct 2014 14:44:45 +0000 (16:44 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 1 Dec 2014 09:46:42 +0000 (10:46 +0100)
commit05092eda8ebd241747b70c3a73aca520cfacccab
tree2244594b6aa8cbf045adaa1a6108ba8bde8336b8
parent154eefecc93b69c6af8040ceef5f004e595a827f
basesink: clamp reported position based on direction

When using a negative rate (rate being segment.rate * segment.applied_rate),
we will end up reporting decreasing positions, therefore adjust the clamping
against last reported value accordingly.

Fixes positions getting properly reported with applied_rate < 0.0

https://bugzilla.gnome.org/show_bug.cgi?id=738092
libs/gst/base/gstbasesink.c