videorate: Fix behaviour for frame rate cap changes
authorRobert Swain <robert.swain@collabora.co.uk>
Thu, 6 Jan 2011 12:08:53 +0000 (13:08 +0100)
committerRobert Swain <robert.swain@collabora.co.uk>
Thu, 6 Jan 2011 12:12:05 +0000 (13:12 +0100)
commit2c1bf82d55cf100117eb4fdac85dac9150fe2659
tree7646e79c23f95612e62a89ee55b27b4030cb9d03
parentfce99dc0be15fca80e6d1e1fd447e3e1338f4e31
videorate: Fix behaviour for frame rate cap changes

The outgoing buffer timestamp is calculated by scaling an output buffer
count by the src pad frame rate caps. If these caps change, we need to
reset the count and work from a new base timestamp. The new output
buffer timestamp is then the count scaled by the new caps values added
onto the base timestamp.
gst/videorate/gstvideorate.c
gst/videorate/gstvideorate.h