mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-19 18:40:31 +00:00
eglglessink: Avoid autoscaling by default
This commit is contained in:
parent
a81b036355
commit
7ac284b1a1
1 changed files with 7 additions and 2 deletions
|
@ -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
|
* The way it is right now makes this happen only for the first buffer
|
||||||
* though so I guess it should work */
|
* though so I guess it should work */
|
||||||
if (gst_eglglessink_setup_vbo (eglglessink, FALSE)) {
|
if (gst_eglglessink_setup_vbo (eglglessink, FALSE)) {
|
||||||
|
/* This makes the rendered fram to fill the whole
|
||||||
|
* surface area.
|
||||||
|
|
||||||
glViewport (0, 0, eglglessink->surface_width,
|
glViewport (0, 0, eglglessink->surface_width,
|
||||||
eglglessink->surface_height);
|
eglglessink->surface_height);
|
||||||
|
*/
|
||||||
|
glViewport (0, 0, w, h);
|
||||||
} else {
|
} else {
|
||||||
GST_ERROR_OBJECT (eglglessink, "VBO setup failed");
|
GST_ERROR_OBJECT (eglglessink, "VBO setup failed");
|
||||||
goto HANDLE_ERROR;
|
goto HANDLE_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue