glvideomixer: fix checker vbo leak

https://bugzilla.gnome.org/show_bug.cgi?id=760925
This commit is contained in:
Wang Xin-yu (王昕宇) 2016-01-21 16:10:48 +08:00 committed by Matthew Waters
parent 5a7f92aa51
commit 18a643d36f

View file

@ -1081,6 +1081,11 @@ _reset_gl (GstGLContext * context, GstGLVideoMixer * video_mixer)
video_mixer->vbo_indices = 0;
}
if (video_mixer->checker_vbo) {
gl->DeleteBuffers (1, &video_mixer->checker_vbo);
video_mixer->checker_vbo = 0;
}
gst_aggregator_iterate_sinkpads (GST_AGGREGATOR (video_mixer), _reset_pad_gl,
NULL);
}