From 25955212b84c21e0a427f683640754dd1b15f080 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 11 Mar 2013 15:51:06 +1100 Subject: [PATCH] [682/906] overlay: fix video-top property --- gst/gl/gstgloverlay.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gst/gl/gstgloverlay.c b/gst/gl/gstgloverlay.c index f0448379ec..75b71ae01d 100644 --- a/gst/gl/gstgloverlay.c +++ b/gst/gl/gstgloverlay.c @@ -587,10 +587,9 @@ gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff) 1000.0f); gl->Enable (GL_DEPTH_TEST); gluLookAt (0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); - if (overlay->video_top) { - gst_gl_overlay_load_texture (overlay, overlay->pbuftexture, 0); - if (overlay->pbuftexture == 0) - return; + if (!overlay->video_top) { + if (overlay->pbuftexture != 0) + gst_gl_overlay_load_texture (overlay, overlay->pbuftexture, 0); // if (overlay->stretch) { // width = (gfloat) overlay->width; // height = (gfloat) overlay->height;