]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commit
basesink: improve duration calculation
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 14 Feb 2011 13:00:38 +0000 (14:00 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 14 Feb 2011 14:17:45 +0000 (15:17 +0100)
commitf8828eace691a20f37a7dcad7766ab3e6e13331c
tree1892b416d8136546f867f8cf0f48a9dff8f9960c
parent79665e8247d9e2beae3f6a282a834bff65cfb5e3
basesink: improve duration calculation

Keep track of the average distance between incomming timestamps and
use that to estimate the frame duration when buffers have no duration set on
them.
libs/gst/base/gstbasesink.c