From bb8515671efdf87c1693ab2e6e1a93d742b26cee Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 23 Mar 2020 18:42:19 +0900 Subject: [PATCH] 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 --- gst/videorate/gstvideorate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 4e051385d3..3a1945ef1c 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -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)