[MPlayer-cygwin] [Patch] Enable menu console for MingW builds
Frank Aurich
fa859178 at inf.tu-dresden.de
Fri Dec 9 22:48:27 CET 2005
Hi there,
very optimistic that working with child process on Windows couldn't be
any harder than on *NIX, I attempted to make the menu console in MPlayer
work for MingW users as well.
I semi-failed.
I modified the file libmenu/menu_console.c and added fork()ing code for
Win32 systems so that someone can enable the console and type "run
<cmd>" and let the result be displayed within MPlayers video window.
I successfully set up piping the stdin, stdout and stderr so text
outputted by the run application will show up in MPlayer (albeit
badly-formatted).
The real deal though would be to do a "run cmd" and then be able to have
access to a built-in shell from where you could do almost anything you
want (that has text ouput).
Here is the part I did not succeed. As soone as I type the above,
MPlayer stops working. It doesn't crash, the application simply locks.
I've looked over this code and can't find a proper reason why it does
what it does. Then again, this is my first time of dealing with Win32
child processes.
In case someone wants to check out the code here's a link to the patch:
http://www.inf.tu-dresden.de/~fa859178/win32console.diff
After applying the patch enable the console and type "run ipconfig" to
see the goodness.
Maybe someone will be able to see the horrible mistake I made and "fix"
the deadlock that appears.
Cheers,
Frank
More information about the MPlayer-cygwin
mailing list