mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
Workaround for Wayland GDK backend
This commit is contained in:
parent
3dfa75d90b
commit
1bc0648f4b
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue