[MPlayer-dev-eng] BUG with no STDIN

Rich Felker dalias at aerifal.cx
Mon Oct 10 04:50:22 CEST 2005


On Mon, Oct 10, 2005 at 01:28:01AM +0200, Thomas Zehetbauer wrote:
> mplayer shoots itself royally in the leg if started with no STDIN:
> 
> open("Clawfinger/A Whole Lot Of Nothing/08 - Simon Says.ogg", O_RDONLY) = 0
> read(0, "OggS\0\2\0\0\0\0\0\0\0\0\373 \0\0\0\0\0\0z\316\352H\1\36"..., 
> 256) = 256
> write(2, "No bind found for key O", 23) = 23
> write(2, "No bind found for key S", 23) = 23
> write(2, "No bind found for key ", 22) = 22
> write(2, "No bind found for key \2", 23) = 23
> 
> Could someone please fix this?
> E.g by opening /dev/null unless STDIN is defined?

Starting programs without any fd 0/1/2 is not valid... it's difficult
to reliably check whether fd0/1/2 already exist, and probably not
portable, so this is not MPlayer's responsibility. Your program should
call it correctly..

BTW this message belongs on -users, not -dev-eng.

Rich




More information about the MPlayer-dev-eng mailing list