Reset display-name if the user provided his own X11 display.

This commit is contained in:
gb 2010-03-11 15:35:43 +00:00
parent e4ae48029f
commit a0255faa07

View file

@ -121,6 +121,10 @@ gst_vaapi_display_x11_constructed(GObject *object)
display->priv->create_display = display->priv->x11_display == NULL;
/* Reset display-name if the user provided his own X11 display */
if (!display->priv->create_display)
set_display_name(display, XDisplayString(display->priv->x11_display));
parent_class = G_OBJECT_CLASS(gst_vaapi_display_x11_parent_class);
if (parent_class->constructed)
parent_class->constructed(object);