videorate: Signalling reconfigure to upstream whenever updating downstream caps
authorSeungha Yang <seungha@centricular.com>
Mon, 23 Mar 2020 09:42:19 +0000 (18:42 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 23 Mar 2020 09:50:10 +0000 (18:50 +0900)
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

index 4e05138..3a1945e 100644 (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)