[gst-devel] What could cause the error in xvimagesink (XGetWindowAttributes): X Error of failed request?
Yiliang Bao
yiliangb at gmail.com
Tue Mar 2 00:11:24 CET 2010
Hi Luciana,
No, I did not use these functions.
Yiliang
On Mon, Mar 1, 2010 at 11:38 AM, Luciana Fujii Pontello <
luciana at holoscopio.com> wrote:
> On Sat, 2010-02-27 at 17:23 -0800, yiliang wrote:
> > Hi,
> >
> > I have 2 applications. One application (application A) creates a window,
> and
> > sends the window ID to another application (application B). application B
> > has a gstreamer video pipeline that uses xvimagesink to display the video
> as
> > overlay in the window using the window ID provided by application A. I am
> > sorry if it sounds a little confusing. This is to separate UI from
> pipeline.
> >
> > Following function is used to configure xvimagesink with window ID:
> >
> > gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(xvimagesink), winId);
> >
> > Most of time it works fine, but sometimes I encounter the following
> problem,
> > and the application B is terminated:
> >
> > X Error of failed request: BadWindow (invalid Window parameter)
> > Major opcode of failed request: 3 (X_GetWindowAttributes)
> > Resource id in failed request: 0x400016f
> > Serial number of failed request: 32
> > Current serial number in output stream: 33
> >
> > After some debugging, I found the error was generated in function
> > gst_xvimagesink_set_xwindow_id() when it called the following function:
> >
> > XGetWindowAttributes
> >
> > Could anyone give some hint how to fix this problem?
>
> Are you using gdk threads_enter() right before set_xwindow_id and
> threads_leave() right after?
>
> I do something similar to what you're doing, but had no problems until
> now.
>
> Luciana Fujii
> Holoscópio Tecnologia - http://holoscopio.com
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100301/73bad676/attachment.htm>
More information about the gstreamer-devel
mailing list