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 Tim-Philipp Müller
parent 1e4c9c1688
commit 46cf23b0a1

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);
}