glimagesink crash

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

glimagesink crash

David Hoyt
I'm using glimagesink w/ xoverlay in ubuntu 9.10 -- the first time I run it,
it works fine. But if I set the xid for xoverlay in subsequent calls, it
crashes with:

The error was 'BadWindow (invalid Window parameter)'.  
(Details: serial 14 error_code 3 request_code 3 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Any idea what I could be doing wrong? The same code works fine w/ ximagesink
and xvimagesink. When I don't use xoverlay and let gstreamer create its own
window, it doesn't crash.

If I set the "sync" property on glimagesink (not related to the "--sync"
option in the error message) to false, I don't get a crash -- but when I
have a pipeline transition from NULL -> PLAYING -> NULL -> PLAYING, instead
of embedding it, it creates a new window as large as my monitor.

I appreciate any help anyone can offer.



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: glimagesink crash

Alexandre Quessy
Hello!
The examples shipped with glimagesink are (still?) outdated.
I took part in a thread about this recently. Can't find it now, though.

a

2010/5/31 David Hoyt <[hidden email]>:

> I'm using glimagesink w/ xoverlay in ubuntu 9.10 -- the first time I run it,
> it works fine. But if I set the xid for xoverlay in subsequent calls, it
> crashes with:
>
> The error was 'BadWindow (invalid Window parameter)'.
> (Details: serial 14 error_code 3 request_code 3 minor_code 0)
>  (Note to programmers: normally, X errors are reported asynchronously;
>   that is, you will receive the error a while after causing it.
>   To debug your program, run it with the --sync command line
>   option to change this behavior. You can then get a meaningful
>   backtrace from your debugger if you break on the gdk_x_error() function.)
>
> Any idea what I could be doing wrong? The same code works fine w/ ximagesink
> and xvimagesink. When I don't use xoverlay and let gstreamer create its own
> window, it doesn't crash.
>
> If I set the "sync" property on glimagesink (not related to the "--sync"
> option in the error message) to false, I don't get a crash -- but when I
> have a pipeline transition from NULL -> PLAYING -> NULL -> PLAYING, instead
> of embedding it, it creates a new window as large as my monitor.
>
> I appreciate any help anyone can offer.
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Alexandre Quessy
http://alexandre.quessy.net/

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel