gtk: Fix rotation not being applied when paused
authorBastien Nocera <hadess@hadess.net>
Tue, 1 Feb 2022 13:28:24 +0000 (14:28 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 10 Feb 2022 23:33:02 +0000 (23:33 +0000)
The video wouldn't be redrawn immediately when a rotation was applied
but the pipeline was paused, as no new buffers were scheduled to be
displayed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1618>

subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c

index 1f24400..b135697 100644 (file)
@@ -752,6 +752,8 @@ gtk_gst_gl_widget_set_rotate_method (GtkGstGLWidget * gst_widget,
     priv->current_rotate_method = method;
   }
   GTK_GST_BASE_WIDGET_UNLOCK (gst_widget);
+
+  gtk_gst_base_widget_queue_draw (GTK_GST_BASE_WIDGET (gst_widget));
 }
 
 GstVideoOrientationMethod