mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
libs: display: remove display_type from display info
Since it's no required to pass the display type in the display info, the structure member is removed. https://bugzilla.gnome.org/show_bug.cgi?id=782212
This commit is contained in:
parent
4e9de44ba2
commit
494ac4e3a8
5 changed files with 0 additions and 8 deletions
|
@ -839,7 +839,6 @@ gst_vaapi_display_create_unlocked (GstVaapiDisplay * display,
|
|||
GST_VAAPI_DISPLAY_GET_CLASS (display);
|
||||
GstVaapiDisplayInfo info = {
|
||||
.display = display,
|
||||
.display_type = klass->display_type,
|
||||
};
|
||||
|
||||
switch (init_type) {
|
||||
|
@ -847,7 +846,6 @@ gst_vaapi_display_create_unlocked (GstVaapiDisplay * display,
|
|||
GstVaapiDisplayInfo *p_info = data;
|
||||
|
||||
info.va_display = p_info->va_display;
|
||||
info.display_type = p_info->display_type;
|
||||
priv->display = p_info->va_display;
|
||||
priv->use_foreign_display = TRUE;
|
||||
|
||||
|
@ -1166,7 +1164,6 @@ gst_vaapi_display_new_with_display (VADisplay va_display)
|
|||
{
|
||||
GstVaapiDisplayInfo info = {
|
||||
.va_display = va_display,
|
||||
.display_type = GST_VAAPI_DISPLAY_TYPE_ANY,
|
||||
};
|
||||
|
||||
return gst_vaapi_display_new (g_object_new (GST_TYPE_VAAPI_DISPLAY, NULL),
|
||||
|
|
|
@ -127,7 +127,6 @@ gst_vaapi_display_type_is_compatible (GstVaapiDisplayType type1,
|
|||
struct _GstVaapiDisplayInfo
|
||||
{
|
||||
GstVaapiDisplay *display;
|
||||
GstVaapiDisplayType display_type;
|
||||
gchar *display_name;
|
||||
VADisplay va_display;
|
||||
gpointer native_display;
|
||||
|
|
|
@ -311,7 +311,6 @@ gst_vaapi_display_drm_get_display_info (GstVaapiDisplay * display,
|
|||
info->va_display = vaGetDisplayDRM (priv->drm_device);
|
||||
if (!info->va_display)
|
||||
return FALSE;
|
||||
info->display_type = GST_VAAPI_DISPLAY_TYPE_DRM;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -239,7 +239,6 @@ gst_vaapi_display_wayland_get_display_info (GstVaapiDisplay * display,
|
|||
info->va_display = vaGetDisplayWl (priv->wl_display);
|
||||
if (!info->va_display)
|
||||
return FALSE;
|
||||
info->display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -225,7 +225,6 @@ gst_vaapi_display_x11_get_display_info (GstVaapiDisplay * display,
|
|||
info->va_display = vaGetDisplay (priv->x11_display);
|
||||
if (!info->va_display)
|
||||
return FALSE;
|
||||
info->display_type = GST_VAAPI_DISPLAY_TYPE_X11;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -380,7 +379,6 @@ gst_vaapi_display_x11_new_with_va_display (VADisplay va_display,
|
|||
GstVaapiDisplayInfo info = {
|
||||
.va_display = va_display,
|
||||
.native_display = x11_display,
|
||||
.display_type = GST_VAAPI_DISPLAY_TYPE_X11,
|
||||
};
|
||||
|
||||
g_return_val_if_fail (x11_display, NULL);
|
||||
|
|
Loading…
Reference in a new issue