videorate: Detect framerate if not forced to variable downstream
authorThibault Saunier <tsaunier@gnome.org>
Tue, 9 Dec 2014 12:18:42 +0000 (13:18 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 2 Apr 2015 21:13:24 +0000 (17:13 -0400)
commitae86dec9cafabe2e607e053860d3b4e1c64e876c
tree01dd33c038dbadf6806747f17f1800ba6b9de9e3
parent1cda538e0077f547bed18b3715e419f22fb06ac3
videorate: Detect framerate if not forced to variable downstream

In case upstream does not provide videorate with framerate information,
it will detect the current framerate from the buffer it received,
but if downstream forces the use of variable framerate (most probably
through the use of a caps filter with framerate = 0 / 1), videorate will
respect that.

And add some unit tests

https://bugzilla.gnome.org/show_bug.cgi?id=734424
gst/videorate/gstvideorate.c
gst/videorate/gstvideorate.h
tests/check/elements/videorate.c