diff options
author | He Junyan <junyan.he@hotmail.com> | 2020-04-18 19:32:24 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-05-16 19:18:46 +0200 |
commit | f20bd8bfd1c916c979319d134dbfc2ca5ef00167 (patch) | |
tree | fd0ef4954ac7d99cbd83a79f2587776335930bb9 /tests | |
parent | 808247a96325f689f88f98708ef8ecd287057022 (diff) | |
download | gstreamer-vaapi-f20bd8bfd1c916c979319d134dbfc2ca5ef00167.tar.gz |
libs: texture: Make texture a standard GstMiniObject.
We store GstVaapiTextureGLX and GstVaapiTextureEGL's private data in
the qdata of miniobject and avoid extending the base texture class.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/317>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/internal/test-textures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/internal/test-textures.c b/tests/internal/test-textures.c index 46e2b916..0f7e1e92 100644 --- a/tests/internal/test-textures.c +++ b/tests/internal/test-textures.c @@ -168,8 +168,8 @@ main (int argc, char *argv[]) gst_vaapi_window_glx_swap_buffers (glx_window); pause (); - gst_vaapi_texture_unref (textures[0]); - gst_vaapi_texture_unref (textures[1]); + gst_mini_object_unref (GST_MINI_OBJECT_CAST (textures[0])); + gst_mini_object_unref (GST_MINI_OBJECT_CAST (textures[1])); glDeleteTextures (1, &texture_id); gst_object_unref (window); |