diff --git a/gst/parole-gst.c b/gst/parole-gst.c index 6676675..5c0cb76 100644 --- a/gst/parole-gst.c +++ b/gst/parole-gst.c @@ -36,3 +36,3 @@ #include #include #include #include "parole-gst.h" @@ -1686,7 +1690,7 @@ static void parole_gst_constructed (GObject *object) { ParoleGst *gst; - + const gchar *display; gboolean enable_xv; gst = PAROLE_GST (object); @@ -1723,6 +1727,13 @@ parole_gst_constructed (GObject *object) } } + display = gdk_get_display_arg_name(); + + if (display != NULL) + g_object_set (G_OBJECT (gst->priv->video_sink), + "display", display, + NULL); + g_object_set (G_OBJECT (gst->priv->playbin), "video-sink", gst->priv->video_sink, NULL);