basesink: improve average duration calculation
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 14 Feb 2011 12:47:02 +0000 (13:47 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 14 Feb 2011 14:17:44 +0000 (15:17 +0100)
commit9661a713badfa854f54645e18695a0bd8cda1dfb
tree734063076dbb445b24510dcb67e4f9bc1c2446b4
parentdc0120fe28001471eaf155e8dfed9677ebf424b7
basesink: improve average duration calculation

Improve the calculation of the duration. When we have no input duration set on
the input buffers stop is set to start and then we end up using a 0 duration in
the average calculation.
libs/gst/base/gstbasesink.c