[MPlayer-users] MPlayer hangs in slave mode on Windows

Anton Sviridenko anton at corp.bluecherry.net
Sat Dec 13 23:23:32 CET 2014


> I you use slave mode you must connect stdin to a proper file/pipe where read, select etc. works in the expected way.
> In the normal command-line stdin is connect to a console which is a horrible and crazy construct that behaves in no sane way, so all kinds of strange effects happen (since -slave disables the workarounds we use to read keyboard input from it).

Looks like this piece of code is responsible for that in osdep/getch2-win.c:

  HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
  if(PeekNamedPipe(in, NULL, size, &retval, NULL, NULL)){

and PeekNamedPipe() does not work on console handles.


More information about the MPlayer-users mailing list