[SDL] "Xlib: unexpected async reply" with Mplayer embedded‏

vijayendra.agrawal at wipro.com vijayendra.agrawal at wipro.com
Sun Apr 20 07:11:24 PDT 2008


This happens because the Xlib seem to be not thread-safe.
 
You would need to only ensure that the display updates happens only from the main thread only, you would not face this issue. 
 
>From the thread receiving asynchronous message, you need to signal the thread waiting under the context of main thread as and when asych message arrives and the main thread should do the job of display updates.
 
Hope this helps.
 
Best Regards
 
Vijay
(Vijayendra Mohan Agrawal)
53/3 Hosur Main Road
Madiwala,
Bangalore - 560068
India
Ph.        +91-80-41381423
Mobile +91-98453-49045
VOIP    8067104 (Wipro Internal)
 

________________________________

From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of Miles Qi
Sent: Friday, April 04, 2008 1:59 AM
To: sdl at lists.libsdl.org
Subject: [SDL] "Xlib: unexpected async reply" with Mplayer embedded‏


Hi Everyone,

I have an SDL application which has a Mplayer embedded. I often get the error: "Xlib: unexpected async reply". I found in mail-list there are a lot of discussions about "Xlib: unexpected async reply" problem. Based on these discussions, I guess, this problem is because Xlib functions are called in two threads(one is my main thread, i think there is another one in Mplayer). For my case, I can't combine two threads into one, what should I do to avoid this problem? Any suggestion would be very appreciated.

Thanks

________________________________

Sign in to Windows Live Messenger, and enter for your chance to win $1000 a day—today until May 12th. Visit SignInAndWIN.ca <http://g.msn.ca/ca55/210>  

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080420/d81d3942/attachment.htm 


More information about the SDL mailing list