gleffects: don't abort when setting the effect to 0,1,2

This commit is contained in:
Matthew Waters 2014-12-11 14:57:18 +11:00 committed by Tim-Philipp Müller
parent b99d53e0ff
commit b428dec737

View file

@ -164,6 +164,10 @@ gst_gl_effects_set_effect (GstGLEffects * effects, gint effect_type)
}
#if GST_GL_HAVE_OPENGL
switch (effect_type) {
case GST_GL_EFFECT_IDENTITY:
case GST_GL_EFFECT_MIRROR:
case GST_GL_EFFECT_SQUEEZE:
break;
case GST_GL_EFFECT_STRETCH:
effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_stretch;
filter_class->supported_gl_api = GST_GL_API_OPENGL;