summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Xin-yu (王昕宇) <comicfans44@gmail.com>2016-01-21 16:10:48 +0800
committerMatthew Waters <matthew@centricular.com>2016-02-01 13:56:53 +1100
commit48730b81e69d80a4b5b0b642796d9d1eed7fdf31 (patch)
tree29be529662565b8cc2a2c630a561ba50340a9fe0
parent6fef5095b07de95969089be57bf365d8daac409e (diff)
glvideomixer: fix checker vbo leak
https://bugzilla.gnome.org/show_bug.cgi?id=760925
-rw-r--r--ext/gl/gstglvideomixer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c
index 9376793be..05b7b9678 100644
--- a/ext/gl/gstglvideomixer.c
+++ b/ext/gl/gstglvideomixer.c
@@ -864,6 +864,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);
}