[MPlayer-dev-eng] [PATCH] threaded vo_directx
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Oct 28 14:33:22 CET 2007
On Sun, Oct 28, 2007 at 07:52:29PM +0700, Vladimir Voroshilov wrote:
> 2007/10/28, Zuxy Meng <zuxy.meng at gmail.com>:
> > It has long been a problem in Windows that when you press a mouse
> > button on the caption, mplayer's playback stalls until you release it.
> > I've fixed the problem by put the window procedure into another thread
> > so that playback can continue even if you hold your mouse or move the
> > window around the desktop.
> > Comments?
> (Just to be sure) Are mplayer's input fifo operations thread-safe?
> After applying patch input key can be putted into fifo by one thread
> (vo_directx) but popped out from there by another (main thread).
Most likely not. In addition this change might complicate extending
vo_directx (and actually are you sure it does not misuse the Windows
API?) since AFAIK you can't do any operations at all on Windows that
were created by a different thread.
More information about the MPlayer-dev-eng