window_id = None is a valid state if you notice on Line 108 we only want to set a window_id if one is present. If there is no window_id we don't want to set one and GStreamer will just open a new window.

<pre>if message_name == 'prepare-xwindow-id' and self.window_id is not None:</pre>