mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
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
This commit is contained in:
parent
12ac087807
commit
c84f911cee
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ gst_video_rate_transform_caps (GstBaseTransform * trans,
|
|||
|
||||
s1 = gst_structure_copy (s);
|
||||
|
||||
if (videorate->updating_caps) {
|
||||
if (videorate->updating_caps && direction == GST_PAD_SINK) {
|
||||
GST_INFO_OBJECT (trans,
|
||||
"Only updating caps %" GST_PTR_FORMAT " with framerate" " %d/%d",
|
||||
caps, videorate->to_rate_numerator, videorate->to_rate_denominator);
|
||||
|
|
Loading…
Reference in a new issue