basesink: Fix treating base_time as unsigned in position calculation
authorJan Schmidt <thaytan@noraisin.net>
Wed, 11 Nov 2009 17:12:19 +0000 (17:12 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 11 Nov 2009 17:12:19 +0000 (17:12 +0000)
commitf83ea8233bf1661bdab0d4ec6f08169d7c664452
treec94a150482a97cf20d048c26b5f0f80153b23a79
parent039ef8352387646434f537138007797ac02c325c
basesink: Fix treating base_time as unsigned in position calculation

Element base_time is a signed quantity, which leads to basesink returning
a position of 0 when dealing with a negative base time - which are quite
legal when clocks (such as the audio clock) are close to 0.

This doesn't manifest in normal pipelines, of course - but can happen
(at least) when manually setting the base time on a pipeline.
libs/gst/base/gstbasesink.c