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"><<a href="mailto:luciana@holoscopio.com">luciana@holoscopio.com</a>></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">> Hi,<br>
><br>
> I have 2 applications. One application (application A) creates a window, and<br>
> sends the window ID to another application (application B). application B<br>
> has a gstreamer video pipeline that uses xvimagesink to display the video as<br>
> overlay in the window using the window ID provided by application A. I am<br>
> sorry if it sounds a little confusing. This is to separate UI from pipeline.<br>
><br>
> Following function is used to configure xvimagesink with window ID:<br>
><br>
> gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(xvimagesink), winId);<br>
><br>
> Most of time it works fine, but sometimes I encounter the following problem,<br>
> and the application B is terminated:<br>
><br>
> X Error of failed request: BadWindow (invalid Window parameter)<br>
> Major opcode of failed request: 3 (X_GetWindowAttributes)<br>
> Resource id in failed request: 0x400016f<br>
> Serial number of failed request: 32<br>
> Current serial number in output stream: 33<br>
><br>
> After some debugging, I found the error was generated in function<br>
> gst_xvimagesink_set_xwindow_id() when it called the following function:<br>
><br>
> XGetWindowAttributes<br>
><br>
> 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'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&#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>