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:55:05 +1100
commit7287564f2053e87f9dc1bbf303d98118f5443c3b (patch)
tree0a26a1b9d42660cb48ddcb1399b6114fd9d5ae51
parent0ae665e35c54c10ed6246eb1bbe01f64ed87dadc (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 da295252b..273d06739 100644
--- a/ext/gl/gstglvideomixer.c
+++ b/ext/gl/gstglvideomixer.c
@@ -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);
}