Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tagplay.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-06 23:07:56 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-06 23:07:56 (GMT)
commita1bc4bf88a88be077cc04055cf68e91a8423ade0 (patch)
tree292ae4191cc2199ab32f25b1b6dbba1cca25cf12 /tagplay.py
parent1c72f127587c9b5a037a9f45e59ece4e04716fbb (diff)
catch window=None bug
Diffstat (limited to 'tagplay.py')
-rw-r--r--tagplay.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tagplay.py b/tagplay.py
index 00d0019..d8cc86b 100644
--- a/tagplay.py
+++ b/tagplay.py
@@ -59,6 +59,8 @@ class Gplay:
if message.structure is None:
return True
if message.structure.get_name() == 'prepare-xwindow-id':
+ if self.window is None:
+ return True
self.window.set_sink(message.src)
message.src.set_property('force-aspect-ratio', True)
return True