MCPcopy Index your code
hub / github.com/GStreamer/gst-python / on_sync_message

Method on_sync_message

old_examples/play.py:33–42  ·  view source on GitHub ↗
(self, bus, message)

Source from the content-addressed store, hash-verified

31 bus.connect('message', self.on_message)
32
33 def on_sync_message(self, bus, message):
34 if message.structure is None:
35 return
36 if message.structure.get_name() == 'prepare-xwindow-id':
37 # Sync with the X server before giving the X-id to the sink
38 gtk.gdk.threads_enter()
39 gtk.gdk.display_get_default().sync()
40 self.videowidget.set_sink(message.src)
41 message.src.set_property('force-aspect-ratio', True)
42 gtk.gdk.threads_leave()
43
44 def on_message(self, bus, message):
45 t = message.type

Callers

nothing calls this directly

Calls 2

set_propertyMethod · 0.80
set_sinkMethod · 0.45

Tested by

no test coverage detected