Add gst_vaapi_display_get_display_name() helper function to determine
the name associated with the underlying native display. Note that for
raw DRM backends, the display name is actually the device path.
klass->close_display (display);
}
klass->close_display (display);
}
+ g_free (priv->display_name);
+ priv->display_name = NULL;
+
g_free (priv->vendor_string);
priv->vendor_string = NULL;
g_free (priv->vendor_string);
priv->vendor_string = NULL;
if (!gst_vaapi_display_cache_add (priv->cache, &info))
return FALSE;
}
if (!gst_vaapi_display_cache_add (priv->cache, &info))
return FALSE;
}
+
+ g_free (priv->display_name);
+ priv->display_name = g_strdup (info.display_name);
+ * gst_vaapi_display_get_display_type:
+ * @display: a #GstVaapiDisplay
+ *
+ * Returns the @display name.
+ *
+ * Return value: the display name
+ */
+const gchar *
+gst_vaapi_display_get_display_name (GstVaapiDisplay * display)
+{
+ g_return_val_if_fail (display != NULL, NULL);
+
+ return GST_VAAPI_DISPLAY_GET_PRIVATE (display)->display_name;
+}
+
+/**
* gst_vaapi_display_get_display:
* @display: a #GstVaapiDisplay
*
* gst_vaapi_display_get_display:
* @display: a #GstVaapiDisplay
*
GstVaapiDisplayType
gst_vaapi_display_get_display_type (GstVaapiDisplay * display);
GstVaapiDisplayType
gst_vaapi_display_get_display_type (GstVaapiDisplay * display);
+const gchar *
+gst_vaapi_display_get_display_name (GstVaapiDisplay * display);
+
VADisplay
gst_vaapi_display_get_display (GstVaapiDisplay * display);
VADisplay
gst_vaapi_display_get_display (GstVaapiDisplay * display);
GstVaapiDisplayCache *cache;
GRecMutex mutex;
GstVaapiDisplayType display_type;
GstVaapiDisplayCache *cache;
GRecMutex mutex;
GstVaapiDisplayType display_type;
VADisplay display;
guint width;
guint height;
VADisplay display;
guint width;
guint height;