[vlc-devel] [PATCH 2/3] opengl: do not overwrite output size

Romain Vimont rom1v at videolabs.io
Mon Apr 12 15:58:56 UTC 2021


The opengl filter output size is provided by the caller.
---
 modules/video_filter/opengl.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/modules/video_filter/opengl.c b/modules/video_filter/opengl.c
index dab1645fa9..94dcc9b535 100644
--- a/modules/video_filter/opengl.c
+++ b/modules/video_filter/opengl.c
@@ -171,13 +171,8 @@ static int Open( vlc_object_t *obj )
     if (sys == NULL)
         return VLC_ENOMEM;
 
-    unsigned width
-        = filter->fmt_out.video.i_visible_width
-        = filter->fmt_in.video.i_visible_width;
-
-    unsigned height
-        = filter->fmt_out.video.i_visible_height
-        = filter->fmt_in.video.i_visible_height;
+    unsigned width = filter->fmt_out.video.i_visible_width;
+    unsigned height = filter->fmt_out.video.i_visible_height;
 
     // TODO: other than BGRA format ?
 #ifdef USE_OPENGL_ES2
-- 
2.31.0



More information about the vlc-devel mailing list