<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I know that my video sink is xvimagesink, then I don't need to bother with the<br>'prepare-xwindow-id' messages at all, but I wish to set the 'window_handle' on<br>the 'xvimagesink' element directly, once only, before start up the pipeline.<br><br>How do this in Python? Please help Me!<br><br>The pipeline of my application:<br>&lt;&lt;&lt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; player = gst.element_factory_make('playbin2', 'player')<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bus = player.get_bus()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bus.add_signal_watch()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bus.connect('message', self.newBusMessage)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sink = gst.element_factory_make('xvimagesink', 'videosink')<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sink.set_property('force-aspect-ratio', True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sink.set_property('handle-expose', True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sink.set_property('sync', True)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; player.set_property('video-sink', sink)<br>&gt;&gt;&gt;<br>                                               </div></body>
</html>