[totem/wip/hadess/glsink: 35/38] fixup! rotation support




commit 08c75733e957240a08d0ba593d463ba9ad3cd014
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 13 11:34:31 2021 +0200

    fixup! rotation support

 src/backend/bacon-video-widget.c | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 43e764a37..52114cc74 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -107,19 +107,6 @@
 
 #define I_(string) (g_intern_static_string (string))
 
-typedef enum
-{
-  GST_GTK_GL_ROTATE_METHOD_IDENTITY,
-  GST_GTK_GL_ROTATE_METHOD_90R,
-  GST_GTK_GL_ROTATE_METHOD_180,
-  GST_GTK_GL_ROTATE_METHOD_90L,
-  GST_GTK_GL_ROTATE_METHOD_FLIP_HORIZ,
-  GST_GTK_GL_ROTATE_METHOD_FLIP_VERT,
-  GST_GTK_GL_ROTATE_METHOD_FLIP_UL_LR,
-  GST_GTK_GL_ROTATE_METHOD_FLIP_UR_LL,
-  GST_GTK_GL_ROTATE_METHOD_AUTO,
-} GstGtkGLRotateMethod;
-
 static void bacon_video_widget_initable_iface_init (GInitableIface *iface);
 
 /* Signals */
@@ -4074,7 +4061,7 @@ bvw_stop_play_pipeline (BaconVideoWidget * bvw)
   bvw_reconfigure_fill_timeout (bvw, 0);
   g_signal_emit (bvw, bvw_signals[SIGNAL_BUFFERING], 0, 100.0);
   g_object_set (bvw->video_sink,
-                "rotate-method", GST_GTK_GL_ROTATE_METHOD_AUTO,
+                "rotate-method", GST_VIDEO_ORIENTATION_AUTO,
                 NULL);
   GST_DEBUG ("stopped");
 }
@@ -5732,7 +5719,7 @@ bacon_video_widget_initable_init (GInitable     *initable,
   gtk_widget_show (tmp);
 
   g_object_set (bvw->video_sink,
-                "rotate-method", GST_GTK_GL_ROTATE_METHOD_AUTO,
+                "rotate-method", GST_VIDEO_ORIENTATION_AUTO,
                 NULL);
 #if 0
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]