summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-06-13 18:10:28 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-06-13 18:38:19 +0200
commitc9aeb58014c344051761701656c58c042cbbbe06 (patch)
tree1d66d00824bac483693444cd11b7aea50b01e7f4
parentdbe30f3459b98d6136f7cfdbd0a226f81e76e429 (diff)
vaapibufferpool: declare parameter display as object
We have neglected to update this code since GstVaapiDisplay turned into a GstObject descendant. https://bugzilla.gnome.org/show_bug.cgi?id=796470
-rw-r--r--gst/vaapi/gstvaapivideobufferpool.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c
index 51539e27..804d4f6f 100644
--- a/gst/vaapi/gstvaapivideobufferpool.c
+++ b/gst/vaapi/gstvaapivideobufferpool.c
@@ -77,7 +77,7 @@ gst_vaapi_video_buffer_pool_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_DISPLAY:
- priv->display = gst_vaapi_display_ref (g_value_get_pointer (value));
+ priv->display = g_value_dup_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -516,10 +516,9 @@ gst_vaapi_video_buffer_pool_class_init (GstVaapiVideoBufferPoolClass * klass)
g_object_class_install_property
(object_class,
PROP_DISPLAY,
- g_param_spec_pointer ("display",
- "Display",
+ g_param_spec_object ("display", "Display",
"The GstVaapiDisplay to use for this video pool",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ GST_TYPE_VAAPI_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
static void