videorate: Signalling reconfigure to upstream whenever updating downstream caps

Previously configured bufferpool can be expired/inactivate by the
updated caps. Therefore new reconfigure event should be signalled in order to
do allocation query dancing between upstream and downstream again.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/730
This commit is contained in:
Seungha Yang 2020-03-23 18:42:19 +09:00
parent b706b6d84e
commit bb8515671e

View file

@ -1276,6 +1276,9 @@ gst_video_rate_check_variable_rate (GstVideoRate * videorate,
videorate->updating_caps = TRUE;
gst_base_transform_update_src_caps (GST_BASE_TRANSFORM (videorate), tmpcaps);
/* also reconfigure sink so that buffer pool can be updated again */
gst_base_transform_reconfigure_sink (GST_BASE_TRANSFORM (videorate));
done:
gst_caps_unref (tmpcaps);
if (pad)