2010/5/12 Olivier Aubert <span dir="ltr"><<a href="mailto:olivier.aubert@liris.cnrs.fr">olivier.aubert@liris.cnrs.fr</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Stefan<br>
<br>
Thanks for the answer, but this is not the root of the cause since I<br>
also tried this approach and the behaviour is identical. And anyway,<br>
directly using set_xwindow_id is mentioned in the XOverlay doc (this<br>
specific information was added on january 2010 by Tim, so I assume that<br>
it is correct):<br></blockquote><div><br>Thanks for bringing this up Olivier. I have the same issue in my program, although interestingly glimagesink does _not_ suffer from this behavior.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
>From gst-libs/gst/interfaces/xoverlay.c :<br>
* There are two basic usage scenarios: in the simplest case, the application<br>
* knows exactly what particular element is used for video output, which is<br>
* usually the case when the application creates the videosink to use<br>
* (e.g. #xvimagesink, #ximagesink, etc.) itself; in this case, the application<br>
* can just create the videosink element, create and realize the window to<br>
* render the video on and then call gst_x_overlay_set_xwindow_id() directly<br>
* with the XID or native window handle, before starting up the pipeline.<br>
*<br>
* In the other and more common case, the application does not know in advance<br>
* what GStreamer video sink element will be used for video output.<br>
* [...use prepare-xwindow-id...]<br>
<br>
I am in the first case (instanciating exactly the sink I need), and<br>
calling set_xwindow_id after my embedding widget is realized.<br>
<font color="#888888"><br>
Olivier<br>
</font><div><div></div><div class="h5"><br>
On Wed, 2010-05-12 at 18:49 +0300, Stefan Kost wrote:<br>
> Olivier Aubert wrote:<br>
> > Hello<br>
> ><br>
> > In my python/gtk/gstreamer based application (<a href="http://www.advene.org" target="_blank">www.advene.org</a>), I embed a<br>
> > xvimagesink (on linux with gtk 2.20)/ximagesink (on macos x with gtk<br>
> > 2.18) in a gtk.Socket, calling set_xwindow_id after the gtk.Socket is<br>
> > realized.<br>
> ><br>
> You should call set_xwindow_id() in reply to the "prepare-xwindow-id"<br>
> element message on the gstreamer bus. Anything else is sheer luck :) The<br>
> GstXOverlay docs have examples.<br>
><br>
> Stefan<br>
> > It worked alright with gst-plugins-good 0.10.21. However, since the<br>
> > upgrade to 0.10.22, the behaviour changed: the image is not displayed<br>
> > until the window has received an expose event (basically, I hide and<br>
> > show the window).<br>
> ><br>
> > I had a quick look at the git logs, but did not find anything that<br>
> > seemed relevant. Has there been a change in the xoverlay API that I<br>
> > should be aware of ? And if not, are there any hints to help me debug<br>
> > this issue?<br>
> ><br>
> > Thanks<br>
> > Olivier<br>
> ><br>
> ><br>
> > ------------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> > <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
> ><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tristan Matthews<br>email: <a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a><br>web: <a href="http://tristanswork.blogspot.com">http://tristanswork.blogspot.com</a><br>