diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2008-04-24 11:35:38 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2008-04-24 11:35:38 +0000 |
commit | 839bc5b0d4c40ff7d5d661df80018075b5c3c92f (patch) | |
tree | 304be9e3e31cd80a586f177b250d795a2117ae5c /examples/synchronizer.py | |
parent | 18e711131e6ffa11cf2bcdfcf035fcc744af0dc3 (diff) |
examples/: Sync with the X server before giving an XID to our sink with a different display connection. This avoids s...
Original commit message from CVS:
* examples/play.py:
* examples/remuxer.py:
* examples/switch.py:
* examples/synchronizer.py:
Sync with the X server before giving an XID to our sink with a different
display connection. This avoids spurious X servers where the sink's
display connection doesn't know the XID that the GDK thread's does.
Diffstat (limited to 'examples/synchronizer.py')
-rwxr-xr-x | examples/synchronizer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/synchronizer.py b/examples/synchronizer.py index 709a9dd..f5eff50 100755 --- a/examples/synchronizer.py +++ b/examples/synchronizer.py @@ -32,6 +32,8 @@ class GstPlayer: if message.structure is None: return if message.structure.get_name() == 'prepare-xwindow-id': + # Sync with the X server before giving the X-id to the sink + gtk.gdk.display_get_default().sync() self.videowidget.set_sink(message.src) message.src.set_property('force-aspect-ratio', True) |