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 0fbbbd042a
commit a8b860e45d

View file

@ -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;