Hi, On Tue, 23 Feb 2010, Sambhav wrote: > In my application there are two threads. > Thread 1: Does decoding > Thread 2: Does display (i.e. vaPutSurface) Are you locking your display? XInitThreads() + X locks or pthread locks. Regards, Gwenole.