[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-devel
Subject:    Re: [xine-devel] DRAWABLE_CHANGED
From:       Bastien Nocera <hadess () hadess ! net>
Date:       2004-03-05 13:10:28
Message-ID: 1078492228.19133.22.camel () bnocera ! surrey ! redhat ! com
[Download RAW message or body]

Did you forget to run XInitThreads() ?

On Thu, 2004-03-04 at 22:19, Barr wrote:
> Hi,
> 
> I need to change the current drawable while rendering the stream.
> I'm using the DRAWABLE_CHANGED info to notify Xine about the change
> but it seems that it is ignored for the current frame.
> The drawable used is managed by Qt.
> The actual code sequence goes like this:
> 
> // Block Xine output.
> XLockDisplay(XineDisplay);
> 
> // This calls internally change the XWindow for the widget. (Qt lib)
> QWidget->showFullscreen();
> 
> // Inform Xine about the change of X handle of the widget.
> xine_port_send_gui_data(video, XINE_GUI_SEND_DRAWABLE_CHANGED, (void 
> *)QWidget->winId());
> 
> // Release, Xine can resume.
> XUnlockDisplay(XineDisplay);
> 
> What's happening, I believe, is that a frame is being hold by the 
> XLockDisplay() just before it's rendered and that it's rendered just after I 
> unlock the display, but, still using the old handle. I got exactly one 
> complain from X (major 4) when doing this after what it all becomes fine 
> again.
> 
> Is there a way to synchronize to the Xine display in any way to be sure my 
> call is commited as soon as it is made?
> 
> Thanks.
> barr
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> xine-devel mailing list
> xine-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xine-devel
---
Bastien Nocera <hadess@hadess.net> 
Even in his last years, Granddad had a mind like a steel trap, only one
that had been left out so long it had rusted shut. 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xine-devel mailing list
xine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic