projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e092e1
)
glvideomixer: don't clobber already allocated shader
author
Matthew Waters
<ystreet00@gmail.com>
Wed, 25 Jun 2014 00:18:48 +0000
(10:18 +1000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:43 +0000
(19:31 +0000)
ext/gl/gstglvideomixer.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstglvideomixer.c
b/ext/gl/gstglvideomixer.c
index
5a5d7a2
..
1d0299c
100644
(file)
--- a/
ext/gl/gstglvideomixer.c
+++ b/
ext/gl/gstglvideomixer.c
@@
-315,6
+315,9
@@
gst_gl_video_mixer_init_shader (GstGLMixer * mixer, GstCaps * outcaps)
{
GstGLVideoMixer *video_mixer = GST_GL_VIDEO_MIXER (mixer);
+ if (video_mixer->shader)
+ gst_gl_context_del_shader (mixer->context, video_mixer->shader);
+
return gst_gl_context_gen_shader (mixer->context, video_mixer_v_src,
video_mixer_f_src, &video_mixer->shader);
}