videoflip: Fix caps negotiation when method is selected
authorAdrian Fiergolski <adrian.fiergolski@fastree3d.com>
Wed, 27 Jul 2022 13:44:09 +0000 (15:44 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Jul 2022 00:00:47 +0000 (00:00 +0000)
The caps negotiation should respect the selected method to the test pipeline below works properly.
gst-launch-1.0 videotestsrc ! video/x-raw,width=320,height=600 ! videoflip method=clockwise ! video/x-raw,width=600,height=320 ! fakesink

Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2803>

subprojects/gst-plugins-good/gst/videofilter/gstvideoflip.c

index 1375b57..2403f2a 100644 (file)
@@ -1140,6 +1140,7 @@ gst_video_flip_set_method (GstVideoFlip * videoflip,
     g_type_class_unref (enum_class);
 
     videoflip->proposed_method = method;
+    videoflip->change_configuring_method = TRUE;
 
     GST_OBJECT_UNLOCK (videoflip);