videorate: handle invalid timestamps better
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 30 Apr 2009 14:37:38 +0000 (16:37 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 12 May 2009 08:47:17 +0000 (10:47 +0200)
commit956c9f32a331ad4b7a4cfe6fb9d0ee7f390186dd
treedae38ca1cae1dec57482fcbeab5ef26943be85cb
parent6cee823237d0c76ed8e651e893fce0f8714c7e5b
videorate: handle invalid timestamps better

Handle buffers with -1 timestamps better by keeping track of the en time of the
previous buffer and assuming the -1 timestamp buffer goes right after the
previous one.

when we have two buffers that are equally good, output the oldest buffer once to
minimize latency.

don't try to calculate latency when the input framerate is unknown.
gst/videorate/gstvideorate.c
gst/videorate/gstvideorate.h