basesink: rework position reporting code
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 25 Nov 2010 17:48:09 +0000 (18:48 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Dec 2010 18:10:46 +0000 (19:10 +0100)
commita813aad0acfe016625be885e20f88c9c7f741cf9
tree9d23b1ad496654cf1981ad1b77220321fb547a80
parent79570f49dcc177c5c36302cb7ab8aec84d50f47c
basesink: rework position reporting code

Unify the different position reporting code paths to make it more
understandable.
Use start_time to get more accurate position reporting in paused.
Fix unit tests for more accurate reporting.
libs/gst/base/gstbasesink.c
tests/check/elements/fakesink.c
tests/check/generic/sinks.c