diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-07-25 11:13:29 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-07-25 17:36:12 +0200 |
commit | 5ffa82b64cd1a45794d66fcd09b7ccc65eeec787 (patch) | |
tree | c288393ede2663d7df61d03f539444fbc7bc7905 /gst/vaapi/gstvaapipluginbase.h | |
parent | b8040b35c1a465d189f1573bc3521d4faaf70621 (diff) |
vaapisink: add support for "display-name" property.
Add a "display-name" property to vaapisink so that the end user could
select the desired output. Keep "display-name" in-line with the existing
"display" (GstVaapiDisplayXXX type).
So, for X11 or GLX, the "display-name" is the usual display name as we
know for XOpenDisplay(); for Wayland, the "display-name" is the name used
for wl_display_connect(); and for DRM, the "display-name" is actually the
DRI device name.
https://bugzilla.gnome.org/show_bug.cgi?id=722247
Diffstat (limited to 'gst/vaapi/gstvaapipluginbase.h')
-rw-r--r-- | gst/vaapi/gstvaapipluginbase.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.h b/gst/vaapi/gstvaapipluginbase.h index 6c8abcf6..f0ee4295 100644 --- a/gst/vaapi/gstvaapipluginbase.h +++ b/gst/vaapi/gstvaapipluginbase.h @@ -93,6 +93,8 @@ typedef struct _GstVaapiPluginBaseClass GstVaapiPluginBaseClass; (GST_VAAPI_PLUGIN_BASE(plugin)->display) #define GST_VAAPI_PLUGIN_BASE_DISPLAY_TYPE(plugin) \ (GST_VAAPI_PLUGIN_BASE(plugin)->display_type) +#define GST_VAAPI_PLUGIN_BASE_DISPLAY_NAME(plugin) \ + (GST_VAAPI_PLUGIN_BASE(plugin)->display_name) #define GST_VAAPI_PLUGIN_BASE_DISPLAY_REPLACE(plugin, new_display) \ (gst_vaapi_display_replace(&GST_VAAPI_PLUGIN_BASE_DISPLAY(plugin), \ (new_display))) @@ -137,6 +139,7 @@ struct _GstVaapiPluginBase GstVaapiDisplay *display; GstVaapiDisplayType display_type; GstVaapiDisplayType display_type_req; + gchar *display_name; GstVaapiUploader *uploader; gboolean uploader_used; @@ -189,6 +192,11 @@ gst_vaapi_plugin_base_set_display_type (GstVaapiPluginBase * plugin, GstVaapiDisplayType display_type); G_GNUC_INTERNAL +void +gst_vaapi_plugin_base_set_display_name (GstVaapiPluginBase * plugin, + const gchar * display_name); + +G_GNUC_INTERNAL gboolean gst_vaapi_plugin_base_ensure_display (GstVaapiPluginBase * plugin); |