diff -up ./gst_player.py.fix ./gst_player.py
diff -up ./save_window.py.fix ./save_window.py
--- ./save_window.py.fix	2009-12-18 12:20:38.027242576 -0500
+++ ./save_window.py	2009-12-18 13:12:13.024243540 -0500
@@ -35,8 +35,13 @@ class VideoWidget(gtk.DrawingArea):
     def __init__(self):
         gtk.DrawingArea.__init__(self)
         self.imagesink = None
+        self._xid = None
         self.unset_flags(gtk.DOUBLE_BUFFERED)
 
+    def do_realize(self):
+        Gtk.DrawingArea.do_realize(self)
+        self._xid = self.window.xid
+
     def do_expose_event(self, event):
         if self.imagesink:
             self.imagesink.expose()
@@ -45,9 +50,9 @@ class VideoWidget(gtk.DrawingArea):
             return True
 
     def set_sink(self, sink):
-        assert self.window.xid
+        assert self._xid is not None
         self.imagesink = sink
-        self.imagesink.set_xwindow_id(self.window.xid)
+        self.imagesink.set_xwindow_id(self._xid)
 
 class SaveWindow(gtk.Window):
     UPDATE_INTERVAL = 500
