projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0e037
)
gl: delete texture used with GstVideoGLTextureUploadMeta
author
Julien Isorce
<julien.isorce@collabora.co.uk>
Tue, 6 May 2014 09:14:26 +0000
(10:14 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:39 +0000
(19:31 +0000)
gst-libs/gst/gl/gstglupload.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglupload.c
b/gst-libs/gst/gl/gstglupload.c
index
aa7dbdc
..
05af11c
100644
(file)
--- a/
gst-libs/gst/gl/gstglupload.c
+++ b/
gst-libs/gst/gl/gstglupload.c
@@
-107,6
+107,7
@@
gst_gl_upload_init (GstGLUpload * upload)
upload->priv = GST_GL_UPLOAD_GET_PRIVATE (upload);
upload->context = NULL;
+ upload->priv->tex_id = 0;
g_mutex_init (&upload->lock);
}
@@
-137,6
+138,11
@@
gst_gl_upload_finalize (GObject * object)
upload = GST_GL_UPLOAD (object);
+ if (upload->priv->tex_id) {
+ gst_gl_context_del_texture (upload->context, &upload->priv->tex_id);
+ upload->priv->tex_id = 0;
+ }
+
if (upload->convert) {
gst_object_unref (upload->convert);
}