mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gl: delete texture used with GstVideoGLTextureUploadMeta
This commit is contained in:
parent
73a3c173c7
commit
dd8929a272
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,7 @@ gst_gl_upload_init (GstGLUpload * upload)
|
||||||
upload->priv = GST_GL_UPLOAD_GET_PRIVATE (upload);
|
upload->priv = GST_GL_UPLOAD_GET_PRIVATE (upload);
|
||||||
|
|
||||||
upload->context = NULL;
|
upload->context = NULL;
|
||||||
|
upload->priv->tex_id = 0;
|
||||||
|
|
||||||
g_mutex_init (&upload->lock);
|
g_mutex_init (&upload->lock);
|
||||||
}
|
}
|
||||||
|
@ -137,6 +138,11 @@ gst_gl_upload_finalize (GObject * object)
|
||||||
|
|
||||||
upload = GST_GL_UPLOAD (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) {
|
if (upload->convert) {
|
||||||
gst_object_unref (upload->convert);
|
gst_object_unref (upload->convert);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue