Hi Luciana,<br><br>No, I did not use these functions. <br><br>Yiliang<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 11:38 AM, Luciana Fujii Pontello <span dir="ltr">&lt;<a href="mailto:luciana@holoscopio.com">luciana@holoscopio.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sat, 2010-02-27 at 17:23 -0800, yiliang wrote:<br>
</div><div class="im">&gt; Hi,<br>
&gt;<br>
&gt; I have 2 applications. One application (application A) creates a window, and<br>
&gt; sends the window ID to another application (application B). application B<br>
&gt; has a gstreamer video pipeline that uses xvimagesink to display the video as<br>
&gt; overlay in the window using the window ID provided by application A. I am<br>
&gt; sorry if it sounds a little confusing. This is to separate UI from pipeline.<br>
&gt;<br>
&gt; Following function is used to configure xvimagesink with window ID:<br>
&gt;<br>
&gt;     gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(xvimagesink), winId);<br>
&gt;<br>
&gt; Most of time it works fine, but sometimes I encounter the following problem,<br>
&gt; and the application B is terminated:<br>
&gt;<br>
&gt; X Error of failed request:  BadWindow (invalid Window parameter)<br>
&gt;   Major opcode of failed request:  3 (X_GetWindowAttributes)<br>
&gt;   Resource id in failed request:  0x400016f<br>
&gt;   Serial number of failed request:  32<br>
&gt;   Current serial number in output stream:  33<br>
&gt;<br>
&gt; After some debugging, I found the error was generated in function<br>
&gt; gst_xvimagesink_set_xwindow_id() when it called the following function:<br>
&gt;<br>
&gt; XGetWindowAttributes<br>
&gt;<br>
&gt; Could anyone give some hint how to fix this problem?<br>
<br>
</div><div class="im">Are you using gdk threads_enter() right before set_xwindow_id and<br>
threads_leave() right after?<br>
<br>
I do something similar to what you&#39;re doing, but had no problems until<br>
now.<br>
<br>
Luciana Fujii<br>
</div>Holoscópio Tecnologia - <a href="http://holoscopio.com" target="_blank">http://holoscopio.com</a><br>
<div><div></div><div class="h5"><br>
------------------------------------------------------------------------------<br>
Download Intel&amp;#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><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>