[vlc-commits] opengl: do not overwrite output size

Romain Vimont git at videolan.org
Tue Apr 20 10:49:20 UTC 2021


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Mon Apr 12 17:58:56 2021 +0200| [f5658601f90d968bb66ab05b64311654e6362bc7] | committer: Alexandre Janniaux

opengl: do not overwrite output size

The opengl filter output size is provided by the caller.

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5658601f90d968bb66ab05b64311654e6362bc7
---

 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



More information about the vlc-commits mailing list