In my program I use PyGObject/PyGI and GStreamer to show a video in my GUI. The video is shown in a Gtk.DrawingArea
and therefore I need to get it\'s window-han
Have you tried:
def OnSyncMessage(self, bus, msg):
if msg.get_structure() is None:
return True
message_name = msg.get_structure().get_name()
if message_name == 'prepare-window-handle':
imagesink = msg.src
imagesink.set_property('force-aspect-ratio', True)
imagesink.set_window_handle(self.DrawingArea.GetHandle())
return True