mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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:
parent
efc1299426
commit
71877db25f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue