videorate: update the caps framerate only in the GST_PAD_SINK transform_caps direction
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 28 May 2015 10:51:35 +0000 (12:51 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 29 May 2015 13:03:05 +0000 (15:03 +0200)
commitc84f911cee427ea8e1759cccfa99950c1e0988d3
tree1556397f2ff38a153173aa9e2cb0c5ffe7fdff74
parent12ac087807232df52392bfb21cdff7f89c393606
videorate: update the caps framerate only in the GST_PAD_SINK transform_caps direction

When a stream has a variable framerate, videorate calculates it and
forces it on the output caps. However, the code in _transform_caps()
currently also does that if the transform is going in the opposite
direction (GST_PAD_SRC), so during a renegotiation it tries to force
upstream to use the calculated framerate and it fails.

https://bugzilla.gnome.org/show_bug.cgi?id=750032
gst/videorate/gstvideorate.c