libs: va: display_wrapper: Use gpointer for VADisplay.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 13 May 2021 16:46:21 +0000 (18:46 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 18 May 2021 10:15:36 +0000 (12:15 +0200)
In order to be coherent along all the implementation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2196>

gst-libs/gst/va/gstvadisplay_wrapped.c
gst-libs/gst/va/gstvadisplay_wrapped.h
sys/va/gstvautils.c

index 9a3fea1..4626a2f 100644 (file)
@@ -61,7 +61,7 @@ gst_va_display_wrapped_init (GstVaDisplayWrapped * self)
  * Since: 1.20
  **/
 GstVaDisplay *
-gst_va_display_wrapped_new (guintptr handle)
+gst_va_display_wrapped_new (gpointer handle)
 {
   GstVaDisplay *dpy;
 
index 93f36c9..7634f13 100644 (file)
@@ -34,6 +34,6 @@ G_BEGIN_DECLS
 GST_VA_API
 GType                 gst_va_display_wrapped_get_type     (void);
 GST_VA_API
-GstVaDisplay *        gst_va_display_wrapped_new          (guintptr handle);
+GstVaDisplay *        gst_va_display_wrapped_new          (gpointer handle);
 
 G_END_DECLS
index b11f501..57952eb 100644 (file)
@@ -315,7 +315,7 @@ gst_context_get_va_display (GstContext * context, const gchar * type_name,
    * VADisplay from users */
   if (!is_devnode
       && gst_structure_get (s, "va-display", G_TYPE_POINTER, &dpy, NULL)) {
-    if ((display = gst_va_display_wrapped_new ((guintptr) dpy)))
+    if ((display = gst_va_display_wrapped_new (dpy)))
       goto accept;
   }