From 7ac284b1a14c6e6eb6e014ad6e266fe94647d3d6 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Wed, 19 Sep 2012 12:29:13 -0300 Subject: [PATCH] eglglessink: Avoid autoscaling by default --- ext/eglgles/gsteglglessink.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index fa1d3e2c2c..27086467a8 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -1518,8 +1518,13 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink, * The way it is right now makes this happen only for the first buffer * though so I guess it should work */ if (gst_eglglessink_setup_vbo (eglglessink, FALSE)) { - glViewport (0, 0, eglglessink->surface_width, - eglglessink->surface_height); + /* This makes the rendered fram to fill the whole + * surface area. + + glViewport (0, 0, eglglessink->surface_width, + eglglessink->surface_height); + */ + glViewport (0, 0, w, h); } else { GST_ERROR_OBJECT (eglglessink, "VBO setup failed"); goto HANDLE_ERROR;