Render pretty background only in use-reflection=true mode.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 1 Jul 2010 13:19:29 +0000 (13:19 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:48 +0000 (12:55 +0200)
gst/vaapisink/gstvaapisink.c

index 088999a..fc86ec0 100644 (file)
@@ -631,7 +631,8 @@ gst_vaapisink_show_frame_glx(
     if (target != GL_TEXTURE_2D || !texture)
         return FALSE;
 
-    render_background(sink);
+    if (sink->use_reflection)
+        render_background(sink);
 
     glEnable(target);
     glBindTexture(target, texture);