diff options
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) |