[MPlayer-cygwin] Re: Mplayer win32 GUI questions
Erik Lunchpail
erik_27can at yahoo.com
Tue Dec 6 19:55:28 CET 2005
> Are you saying that for you, the second freopen call
> I gave actually
> blocked for input?
It had behaved strangely for me in Cygwin, I couldn't
get any playback until I entered some form of input. I
removed my cygwin, so I can't really test, but this
works in Mingw. Could you let me know if it's ok in
Cygwin?
AllocConsole();
fp = freopen("con", "w", stdout);
*stdout = *fp;
setvbuf(stdout, NULL, _IONBF, 0);
fp = freopen("con", "r", stdin);
*stdin = *fp;
setvbuf(stdin, NULL, _IONBF, 0);
fp = freopen("con", "w", stdout);
*stderr = *fp;
setvbuf(stderr, NULL, _IONBF, 0);
Regards,
Erik
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the MPlayer-cygwin
mailing list