mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gleffects: don't abort when setting the effect to 0,1,2
This commit is contained in:
parent
b99d53e0ff
commit
b428dec737
1 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,10 @@ gst_gl_effects_set_effect (GstGLEffects * effects, gint effect_type)
|
||||||
}
|
}
|
||||||
#if GST_GL_HAVE_OPENGL
|
#if GST_GL_HAVE_OPENGL
|
||||||
switch (effect_type) {
|
switch (effect_type) {
|
||||||
|
case GST_GL_EFFECT_IDENTITY:
|
||||||
|
case GST_GL_EFFECT_MIRROR:
|
||||||
|
case GST_GL_EFFECT_SQUEEZE:
|
||||||
|
break;
|
||||||
case GST_GL_EFFECT_STRETCH:
|
case GST_GL_EFFECT_STRETCH:
|
||||||
effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_stretch;
|
effects->effect = (GstGLEffectProcessFunc) gst_gl_effects_stretch;
|
||||||
filter_class->supported_gl_api = GST_GL_API_OPENGL;
|
filter_class->supported_gl_api = GST_GL_API_OPENGL;
|
||||||
|
|
Loading…
Reference in a new issue