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

Method on_sync_message

old_examples/synchronizer.py:32–41  ·  view source on GitHub ↗
(self, bus, message)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

set_propertyMethod · 0.80
set_sinkMethod · 0.45

Tested by

no test coverage detected