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.
This commit is contained in:
Matthew Waters 2016-04-05 16:22:49 +10:00
parent efc1299426
commit 71877db25f

View file

@ -604,6 +604,7 @@ _upload_frames (GstAggregator * agg, GstAggregatorPad * agg_pad,
GstGLMixerPad *pad = GST_GL_MIXER_PAD (agg_pad); GstGLMixerPad *pad = GST_GL_MIXER_PAD (agg_pad);
GstGLMixer *mix = GST_GL_MIXER (agg); GstGLMixer *mix = GST_GL_MIXER (agg);
pad->current_texture = 0;
if (vaggpad->buffer != NULL) { if (vaggpad->buffer != NULL) {
GstVideoInfo gl_info; GstVideoInfo gl_info;
GstVideoFrame gl_frame; GstVideoFrame gl_frame;