From 1bc0648f4b2db9f7f7e469b9f6cce0c1399d8588 Mon Sep 17 00:00:00 2001 From: albfan Date: Sun, 2 Apr 2017 22:25:48 +0200 Subject: [PATCH] Workaround for Wayland GDK backend --- res/gstplayer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/res/gstplayer b/res/gstplayer index 0501715..2cbbb9b 100755 --- a/res/gstplayer +++ b/res/gstplayer @@ -168,7 +168,10 @@ class Player(object): # You need to get the XID after window.show_all(). You shouldn't get it # in the on_sync_message() handler because threading issues will cause # segfaults there. - self.xid = self.drawingarea.get_property('window').get_xid() + window = self.drawingarea.get_property('window') + if hasattr(window,'get_xid'): + self.xid = self.drawingarea.get_property('window').get_xid() + self.pipeline.set_state(Gst.State.PLAYING) Gtk.main()