mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
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
This commit is contained in:
parent
a6881b9b5e
commit
b1d8c68921
1 changed files with 3 additions and 4 deletions
|
@ -77,7 +77,7 @@ gst_vaapi_video_buffer_pool_set_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_DISPLAY:
|
case PROP_DISPLAY:
|
||||||
priv->display = gst_vaapi_display_ref (g_value_get_pointer (value));
|
priv->display = g_value_dup_object (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
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
|
g_object_class_install_property
|
||||||
(object_class,
|
(object_class,
|
||||||
PROP_DISPLAY,
|
PROP_DISPLAY,
|
||||||
g_param_spec_pointer ("display",
|
g_param_spec_object ("display", "Display",
|
||||||
"Display",
|
|
||||||
"The GstVaapiDisplay to use for this video pool",
|
"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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue