[MPlayer-dev-eng] [PATCH] Extra messages in slave mode

Guillaume Poirier guillaume.poirier at etudiant.univ-rennes1.fr
Mon Dec 5 15:51:07 CET 2005


Hi,

Andras Mohari wrote:

> I've seen a message on mplayer-users ("how to get the OEF with using
> mplayer slave ?" by Alexandre CONRAD <aconrad.tlv at magic.fr>) about the
> hardships of detecting when MPlayer stops playing in idle mode.
> I think that all frontends could benefit from MPlayer printing some
> useful, easy to parse and unambiguous messages when something
> interesting happens, not just when you use a get_* slave command or
> something.
> 
> So this patch makes 'mplayer -slave' print some lines starting with
> SLAVE_ to indicate what it is doing. These are:
> 
> * SLAVE_FILE <filename>
>   Printed when MPlayer is about to play a file.

I'd prefer SLAVE_OPEN <filename>


[..]
> I wonder what you think about these. And please note that I had a hard
> time finding my way in mplayer.c, so I'm not at all sure if I 
> managed to get things right. In other words: I've probably got it all
> wrong, though it seems to work for me. (I've tried it with some files
> and a DVD, nothing else.)

I did not test it, all I can say is that it doesn't look awfully wrong.

What do you guys think?

Guillaume




More information about the MPlayer-dev-eng mailing list