gltransformation: clear to transparent
authorMatthew Waters <matthew@centricular.com>
Fri, 11 Dec 2015 22:33:38 +0000 (09:33 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:12 +0000 (19:32 +0000)
Otherwise composition will result in a black frame outside the transformed
video.

ext/gl/gstgltransformation.c

index 38b5743..5a82ade 100644 (file)
@@ -597,7 +597,7 @@ gst_gl_transformation_callback (gpointer stuff)
   gst_gl_context_clear_shader (GST_GL_BASE_FILTER (filter)->context);
   gl->BindTexture (GL_TEXTURE_2D, 0);
 
-  gl->ClearColor (0.f, 0.f, 0.f, 1.f);
+  gl->ClearColor (0.f, 0.f, 0.f, 0.f);
   gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 
   gst_gl_shader_use (transformation->shader);