gleffects: fix xray to use the correct function
authorMatthew Waters <matthew@centricular.com>
Mon, 11 Jul 2016 12:24:43 +0000 (22:24 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:21 +0000 (19:32 +0000)
Instead of duplicating the sin effect

ext/gl/gstgleffects.c

index 1518a64..5b2d3b2 100644 (file)
@@ -232,7 +232,7 @@ gst_gl_effects_set_effect (GstGLEffects * effects, gint effect_type)
       effects->current_effect = effect_type;
       break;
     case GST_GL_EFFECT_XRAY:
-      effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_sin;
+      effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_xray;
       filter_class->supported_gl_api =
           GST_GL_API_GLES2 | GST_GL_API_OPENGL | GST_GL_API_OPENGL3;
       effects->current_effect = effect_type;