Opened 19 years ago

Last modified 13 years ago

#320 new defect

STDIN REDIRECTION NOT WORKING UNDER WINDOWS 98SE

Reported by: visenri@… Owned by: reimar
Priority: normal Component: core
Version: 1.0pre7 Severity: normal
Keywords: Cc: reimar
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

I am trying to make a gui for your player, i have successfully redirected de
STDIN, STDOUT, AND STDERR streams, but the STDIN stream redirection only works
under WINDOWS XP.

I almost sure it's an mplayer bug for two reasons:

1-My programs works well redirecting all I/O streams under windows98SE with any
other command line program (for ex: command.com)

2-I have tried MPUI (a windows gui made by another person) and has the same
problem (http://www-user.tu-chemnitz.de/~mfie/index.php?page=stuff)

I have tested this in 1.0 pre 6 and 1.0 pre 7 and both have this bug.

I use this command line:
mplayer.exe -slave videofile.mpg

my system, if this makes any sense:
P4 2.4G 512MB NVIDIA GF4TI4200 , HDD 120GB WITH PARTITIONS OF 30G FAT32
TESTED UNDER WINDOWS98SE - NOT WORKING
TESTED UNDER WINDOWS XP SP1 - WORKING OK

Change History (5)

comment:1 by visenri@…, 19 years ago

Under windows98 when i send a command to STDIN mplayer does nothing, it keeps
playing the file and does not execute the command, for example: pause ( with
ending \n of course)

Under windowsxp when i do the same, mplayer executes the command.

comment:2 by reimar, 18 years ago

Unfortunately, MPlayer under windows needs a console stream for stdin. And it
also seems to be more difficult to fix than expected. Have a look at
osdep/getch2* if you want to try fixing it.

comment:3 by mplayer@…, 16 years ago

(In reply to comment #2)

Unfortunately, MPlayer under windows needs a console stream for stdin. And it
also seems to be more difficult to fix than expected. Have a look at
osdep/getch2* if you want to try fixing it.

I bet that this problem has something to do with the workaround python uses
on win98 for pipes

http://www.koders.com/c/fidE08C37EEAD21F066C383DAF068C0148808922FA1.aspx

comment:4 by reimar, 16 years ago

Cc: Reimar.Doeffinger@… added

In that case simply calling AllocConsole before starting MPlayer should work.
Then you only have to find a way to hide the console again...

comment:5 by compn, 13 years ago

Owner: changed from alex@… to reimar
Note: See TracTickets for help on using tickets.