mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
va: Update "device-path" property description for Windows
DRM does not make sense on Windows Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4114>
This commit is contained in:
parent
7bc6ba63b2
commit
7624871b00
5 changed files with 7 additions and 4 deletions
|
@ -748,7 +748,8 @@ gst_va_base_dec_class_init (GstVaBaseDecClass * klass, GstVaCodecs codec,
|
|||
|
||||
g_object_class_install_property (object_class, GST_VA_DEC_PROP_DEVICE_PATH,
|
||||
g_param_spec_string ("device-path", "Device Path",
|
||||
"DRM device path", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
GST_VA_DEVICE_PATH_PROP_DESC, NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
}
|
||||
|
||||
/* XXX: if chroma has not an available format, the first format is
|
||||
|
|
|
@ -918,7 +918,7 @@ gst_va_base_enc_class_init (GstVaBaseEncClass * klass)
|
|||
* It shows the DRM device path used for the VA operation, if any.
|
||||
*/
|
||||
properties[PROP_DEVICE_PATH] = g_param_spec_string ("device-path",
|
||||
"Device Path", "DRM device path", NULL,
|
||||
"Device Path", GST_VA_DEVICE_PATH_PROP_DESC, NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, N_PROPERTIES, properties);
|
||||
|
|
|
@ -648,7 +648,7 @@ gst_va_base_transform_class_init (GstVaBaseTransformClass * klass)
|
|||
* Since: 1.22
|
||||
*/
|
||||
properties[PROP_DEVICE_PATH] = g_param_spec_string ("device-path",
|
||||
"Device Path", "DRM device path", NULL,
|
||||
"Device Path", GST_VA_DEVICE_PATH_PROP_DESC, NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, N_PROPERTIES, properties);
|
||||
|
|
|
@ -1407,7 +1407,7 @@ gst_va_compositor_class_init (gpointer g_class, gpointer class_data)
|
|||
* It shows the DRM device path used for the VA operation, if any.
|
||||
*/
|
||||
properties[PROP_DEVICE_PATH] = g_param_spec_string ("device-path",
|
||||
"Device Path", "DRM device path", NULL,
|
||||
"Device Path", GST_VA_DEVICE_PATH_PROP_DESC, NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,8 +27,10 @@ G_BEGIN_DECLS
|
|||
|
||||
#ifdef G_OS_WIN32
|
||||
#define GST_IS_VA_DISPLAY_PLATFORM(dpy) GST_IS_VA_DISPLAY_WIN32(dpy)
|
||||
#define GST_VA_DEVICE_PATH_PROP_DESC "DXGI Adapter LUID"
|
||||
#else
|
||||
#define GST_IS_VA_DISPLAY_PLATFORM(dpy) GST_IS_VA_DISPLAY_DRM(dpy)
|
||||
#define GST_VA_DEVICE_PATH_PROP_DESC "DRM device path"
|
||||
#endif
|
||||
|
||||
GstVaDisplay * gst_va_display_platform_new (const gchar * path);
|
||||
|
|
Loading…
Reference in a new issue