eglglessink: Avoid autoscaling by default

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-19 12:29:13 -03:00 committed by Sebastian Dröge
parent a81b036355
commit 7ac284b1a1

View file

@ -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;