[vlc-devel] Video quality patches for vlc (based on 0.9.8a)

Rémi Denis-Courmont rem at videolan.org
Fri Apr 10 14:44:13 CEST 2009


Le vendredi 10 avril 2009, Bryan Moore a écrit :
>    // Airgain begin - XFlush to send commands, usleep to force
> context switch.
>    // This is likely to help client/server interaction
>    XFlush( p_vout->p_sys->p_display ); // force commands to be sent
>    usleep(500); // then switch contexts before waiting
>    // Airgain end
>
>    /* Make sure the command is sent now - do NOT use XFlush !*/
>    XSync( p_vout->p_sys->p_display, False );
>
>    vlc_mutex_unlock( &p_vout->p_sys->lock );

Wouldn't sched_yield() do the job?

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list