From 71877db25ffdc29fd3874e9efc455a7dd6999fe4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 5 Apr 2016 16:22:49 +1000 Subject: [PATCH] glmixer: set the current texture to 0 before mapping If we fail mapping, we don't want to use undefined video data in the subclass. --- ext/gl/gstglmixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/gl/gstglmixer.c b/ext/gl/gstglmixer.c index 7059b4837b..3fc7fce2c8 100644 --- a/ext/gl/gstglmixer.c +++ b/ext/gl/gstglmixer.c @@ -604,6 +604,7 @@ _upload_frames (GstAggregator * agg, GstAggregatorPad * agg_pad, GstGLMixerPad *pad = GST_GL_MIXER_PAD (agg_pad); GstGLMixer *mix = GST_GL_MIXER (agg); + pad->current_texture = 0; if (vaggpad->buffer != NULL) { GstVideoInfo gl_info; GstVideoFrame gl_frame;