summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-06-13 17:54:23 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-06-14 16:41:00 +0200
commitfb1c4c52ccd5b258d0968da7752200655c067809 (patch)
tree56f21f0f62bcb3f6fc761644de31819ec1cfba62 /tests
parentb1d8c689213838a9221ed160580a7285db3a615c (diff)
libs: display: remove gst_vaapi_display_unref()
Use gst_object_unref() instead. https://bugzilla.gnome.org/show_bug.cgi?id=796470
Diffstat (limited to 'tests')
-rw-r--r--tests/output.c4
-rw-r--r--tests/simple-encoder.c2
-rw-r--r--tests/test-decode.c4
-rw-r--r--tests/test-display.c18
-rw-r--r--tests/test-fei-enc-in.c2
-rw-r--r--tests/test-filter.c2
-rw-r--r--tests/test-subpicture.c2
-rw-r--r--tests/test-surfaces.c2
-rw-r--r--tests/test-textures.c2
-rw-r--r--tests/test-windows.c6
10 files changed, 22 insertions, 22 deletions
diff --git a/tests/output.c b/tests/output.c
index b15dedec..3469fd39 100644
--- a/tests/output.c
+++ b/tests/output.c
@@ -182,7 +182,7 @@ video_output_create_display (const gchar * display_name)
if (display) {
if (gst_vaapi_display_get_display (display))
break;
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
display = NULL;
}
}
@@ -203,7 +203,7 @@ video_output_create_display (const gchar * display_name)
egl_display = NULL;
g_print ("error: unsupported EGL renderering mode\n");
#endif
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
if (!egl_display)
return NULL;
display = egl_display;
diff --git a/tests/simple-encoder.c b/tests/simple-encoder.c
index 58b0e8c2..9ae63d87 100644
--- a/tests/simple-encoder.c
+++ b/tests/simple-encoder.c
@@ -302,7 +302,7 @@ app_free (App * app)
}
if (app->display)
- gst_vaapi_display_unref (app->display);
+ gst_object_unref (app->display);
if (app->output_file)
fclose (app->output_file);
diff --git a/tests/test-decode.c b/tests/test-decode.c
index 882bfd2e..d44ac438 100644
--- a/tests/test-decode.c
+++ b/tests/test-decode.c
@@ -136,8 +136,8 @@ main (int argc, char *argv[])
gst_vaapi_surface_proxy_unref (proxy);
gst_vaapi_decoder_unref (decoder);
gst_vaapi_window_unref (window);
- gst_vaapi_display_unref (display);
- gst_vaapi_display_unref (display2);
+ gst_object_unref (display);
+ gst_object_unref (display2);
g_free (g_codec_str);
video_output_exit ();
return 0;
diff --git a/tests/test-display.c b/tests/test-display.c
index d81e9030..e189ab32 100644
--- a/tests/test-display.c
+++ b/tests/test-display.c
@@ -222,7 +222,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
}
g_print ("\n");
@@ -241,7 +241,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
close (drm_device);
}
g_print ("\n");
@@ -267,7 +267,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
close (drm_device);
}
g_print ("\n");
@@ -299,7 +299,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
XCloseDisplay (x11_display);
}
g_print ("\n");
@@ -325,7 +325,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
XCloseDisplay (x11_display);
}
g_print ("\n");
@@ -347,7 +347,7 @@ main (int argc, char *argv[])
g_print ("Pixel aspect ratio: %u/%u\n", par_n, par_d);
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
}
g_print ("\n");
@@ -366,7 +366,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
XCloseDisplay (x11_display);
}
g_print ("\n");
@@ -393,7 +393,7 @@ main (int argc, char *argv[])
g_error ("could not create Gst/VA display");
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
XCloseDisplay (x11_display);
}
g_print ("\n");
@@ -416,7 +416,7 @@ main (int argc, char *argv[])
g_print ("Pixel aspect ratio: %u/%u\n", par_n, par_d);
dump_info (display);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
}
g_print ("\n");
#endif
diff --git a/tests/test-fei-enc-in.c b/tests/test-fei-enc-in.c
index 2f7d698e..10d8de7c 100644
--- a/tests/test-fei-enc-in.c
+++ b/tests/test-fei-enc-in.c
@@ -346,7 +346,7 @@ app_free (App * app)
}
if (app->display)
- gst_vaapi_display_unref (app->display);
+ gst_object_unref (app->display);
if (app->output_file)
fclose (app->output_file);
diff --git a/tests/test-filter.c b/tests/test-filter.c
index 6fdc8b6e..380ca67b 100644
--- a/tests/test-filter.c
+++ b/tests/test-filter.c
@@ -444,7 +444,7 @@ main (int argc, char *argv[])
gst_vaapi_object_unref (dst_surface);
gst_vaapi_object_unref (src_surface);
gst_vaapi_window_unref (window);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
video_output_exit ();
g_free (g_src_format_str);
g_free (g_crop_rect_str);
diff --git a/tests/test-subpicture.c b/tests/test-subpicture.c
index b8425721..588e7a7b 100644
--- a/tests/test-subpicture.c
+++ b/tests/test-subpicture.c
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
gst_vaapi_surface_proxy_unref (proxy);
gst_vaapi_decoder_unref (decoder);
gst_vaapi_window_unref (window);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
g_free (g_codec_str);
video_output_exit ();
return 0;
diff --git a/tests/test-surfaces.c b/tests/test-surfaces.c
index b58c5cf8..2f9a90fa 100644
--- a/tests/test-surfaces.c
+++ b/tests/test-surfaces.c
@@ -98,7 +98,7 @@ main (int argc, char *argv[])
}
/* Unref in random order to check objects are correctly refcounted */
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
gst_vaapi_video_pool_unref (pool);
gst_vaapi_object_unref (surface);
video_output_exit ();
diff --git a/tests/test-textures.c b/tests/test-textures.c
index a2d2005f..97c82df5 100644
--- a/tests/test-textures.c
+++ b/tests/test-textures.c
@@ -173,7 +173,7 @@ main (int argc, char *argv[])
glDeleteTextures (1, &texture_id);
gst_vaapi_window_unref (window);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
gst_deinit ();
return 0;
}
diff --git a/tests/test-windows.c b/tests/test-windows.c
index aaffb03b..28b2683a 100644
--- a/tests/test-windows.c
+++ b/tests/test-windows.c
@@ -135,7 +135,7 @@ main (int argc, char *argv[])
}
gst_vaapi_object_unref (surface);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
#endif
#if USE_X11
@@ -200,7 +200,7 @@ main (int argc, char *argv[])
}
gst_vaapi_object_unref (surface);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
#endif
#if USE_WAYLAND
@@ -230,7 +230,7 @@ main (int argc, char *argv[])
}
gst_vaapi_object_unref (surface);
- gst_vaapi_display_unref (display);
+ gst_object_unref (display);
#endif
gst_deinit ();