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

The Wanderer inverseparadox at comcast.net
Mon Dec 5 17:58:51 CET 2005


Reimar Döffinger wrote:

> Hi,
> On Mon, Dec 05, 2005 at 01:05:46PM +0100, Andras Mohari wrote:
> 
>>-    if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename);
>>+    if(filename) {
>>+      mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename);
>>+      if(slave_mode) mp_msg(MSGT_GLOBAL,MSGL_INFO, "SLAVE_FILE %s\n", filename);
>>+    }
> 
> How about giving all those slave mode messages a spearate MSGL? This
> should make it easy to add code that e.g. sends them to a different
> file.
> Or disabling all messages except slave mode ones.
> I would also include the -identify messages in this level, since they
> both are non-translatable and easily parseable.

Or a separate MSGT, perhaps? If they are specifically targeted at
scripts which parse program output, MSGT_PARSERS or the like would seem
appropriate; certainly it should be just as easy (in principle) to
filter what is actually output based on MSGT as on MSGL. Either that or
I'm completely misunderstanding what the MSGT is intended to achieve.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.




More information about the MPlayer-dev-eng mailing list