diff options
author | Matthew Waters <matthew@centricular.com> | 2019-03-06 00:59:35 +1100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 19:08:29 +0100 |
commit | 2cc018e8828b98dd12603bb1c4e7841141183667 (patch) | |
tree | 631d77427d0f42f9a6b57d4051ba6f63573c8d28 | |
parent | 2d8d321ab178f43d52232a1de4bd14a5457fa022 (diff) | |
download | gstreamer-plugins-base-2cc018e8828b98dd12603bb1c4e7841141183667.tar.gz |
gloverlaycompositor: Also free the texcoord GL buffer
Fix a typo that was attempting to free the position GL buffer twice
(without any consequences as there was a if (buffer) check)
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/561
-rw-r--r-- | gst-libs/gst/gl/gstgloverlaycompositor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstgloverlaycompositor.c b/gst-libs/gst/gl/gstgloverlaycompositor.c index bb6dc16eb..52b9dd3b7 100644 --- a/gst-libs/gst/gl/gstgloverlaycompositor.c +++ b/gst-libs/gst/gl/gstgloverlaycompositor.c @@ -179,8 +179,8 @@ gst_gl_composition_overlay_free_vertex_buffer (GstGLContext * context, } if (overlay->texcoord_buffer) { - gl->DeleteBuffers (1, &overlay->position_buffer); - overlay->position_buffer = 0; + gl->DeleteBuffers (1, &overlay->texcoord_buffer); + overlay->texcoord_buffer = 0; } if (overlay->index_buffer) { |