From 32633a9a1471de94e436c1816fb4efd7b195016c Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 1 Feb 2022 14:28:24 +0100 Subject: [PATCH] gtk: Fix rotation not being applied when paused 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: --- subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c b/subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c index 1f244002b6..b13569772a 100644 --- a/subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c +++ b/subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c @@ -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