[MPlayer-cygwin] NOVIRUS [BUG] Slave mode / win32 - FIX

Sascha Sommer saschasommer at freenet.de
Fri Sep 19 16:50:13 CEST 2003



> It was a bit brain mangling, but I got there in the end.
>
> I have attached a patch file (I hope it's the right format, I'm a bit of
> a n00b when it comes to cvs).
>
> What it does (quite simple):
> - adds some extra win32 specific function handling to osdep\getch2-win.c
>
> - defines a new cmd_func in input.c, uses additional function
> (non-select based) to check console is ready to send a command
> - in mplayer.c, if we are MINGW then use these new functions in input
> and osdep rather than the originals.

Would the attached solution also work for your program?
Threads should be avoided in mplayers sources.

Sascha

Btw. it would be a good idea to use the --strip-trailing-cr option to create
the diff.
Your current patch is full of ^M changes, making it hard to find the real
fixes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw_slavemode.diff
Type: application/octet-stream
Size: 1952 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/attachments/20030919/e2fba5f3/attachment.obj>


More information about the MPlayer-cygwin mailing list