diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-12-22 18:07:35 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-12-24 12:20:00 +0000 |
commit | e4ae7d9879b3ee61527e771e4605a234cb37b54d (patch) | |
tree | 77a6f0a77ecee67c39dc2d83842440c8b179f127 /tests | |
parent | 8ef95a7dc22502b78ccd28bddefda29b32918315 (diff) |
libs: window: remove custom ref() and unref()
Use gst_object_ref() and gst_object_unref() instead.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-decode.c | 2 | ||||
-rw-r--r-- | tests/test-filter.c | 2 | ||||
-rw-r--r-- | tests/test-subpicture.c | 2 | ||||
-rw-r--r-- | tests/test-textures.c | 2 | ||||
-rw-r--r-- | tests/test-windows.c | 8 |
5 files changed, 8 insertions, 8 deletions
diff --git a/tests/test-decode.c b/tests/test-decode.c index 81bab85d..ef16aa15 100644 --- a/tests/test-decode.c +++ b/tests/test-decode.c @@ -134,7 +134,7 @@ main (int argc, char *argv[]) gst_vaapi_pixmap_unref (pixmap); gst_vaapi_surface_proxy_unref (proxy); gst_object_unref (decoder); - gst_vaapi_window_unref (window); + gst_object_unref (window); gst_object_unref (display); gst_object_unref (display2); g_free (g_codec_str); diff --git a/tests/test-filter.c b/tests/test-filter.c index 8e6b2080..ab57775a 100644 --- a/tests/test-filter.c +++ b/tests/test-filter.c @@ -443,7 +443,7 @@ main (int argc, char *argv[]) gst_object_unref (filter); gst_vaapi_object_unref (dst_surface); gst_vaapi_object_unref (src_surface); - gst_vaapi_window_unref (window); + gst_object_unref (window); gst_object_unref (display); video_output_exit (); g_free (g_src_format_str); diff --git a/tests/test-subpicture.c b/tests/test-subpicture.c index b193e103..ee000560 100644 --- a/tests/test-subpicture.c +++ b/tests/test-subpicture.c @@ -164,7 +164,7 @@ main (int argc, char *argv[]) gst_video_overlay_composition_unref (compo); gst_vaapi_surface_proxy_unref (proxy); gst_object_unref (decoder); - gst_vaapi_window_unref (window); + gst_object_unref (window); gst_object_unref (display); g_free (g_codec_str); video_output_exit (); diff --git a/tests/test-textures.c b/tests/test-textures.c index 97c82df5..46e2b916 100644 --- a/tests/test-textures.c +++ b/tests/test-textures.c @@ -172,7 +172,7 @@ main (int argc, char *argv[]) gst_vaapi_texture_unref (textures[1]); glDeleteTextures (1, &texture_id); - gst_vaapi_window_unref (window); + gst_object_unref (window); gst_object_unref (display); gst_deinit (); return 0; diff --git a/tests/test-windows.c b/tests/test-windows.c index 28b2683a..4985e350 100644 --- a/tests/test-windows.c +++ b/tests/test-windows.c @@ -131,7 +131,7 @@ main (int argc, char *argv[]) g_error ("could not render surface"); pause (); - gst_vaapi_window_unref (window); + gst_object_unref (window); } gst_vaapi_object_unref (surface); @@ -161,7 +161,7 @@ main (int argc, char *argv[]) g_error ("could not render surface"); pause (); - gst_vaapi_window_unref (window); + gst_object_unref (window); } g_print ("#\n"); @@ -194,7 +194,7 @@ main (int argc, char *argv[]) g_error ("could not render surface"); pause (); - gst_vaapi_window_unref (window); + gst_object_unref (window); XUnmapWindow (dpy, win); XDestroyWindow (dpy, win); } @@ -226,7 +226,7 @@ main (int argc, char *argv[]) g_error ("could not render surface"); pause (); - gst_vaapi_window_unref (window); + gst_object_unref (window); } gst_vaapi_object_unref (surface); |