[MPlayer-dev-eng] [PATCH] Report the reason to exit for -identify

rvm rvm3000 at ya.com
Mon Nov 3 00:35:03 CET 2008


Frontends may need to know the reason for what mplayer has exited (quitted by 
the user, end of file...). It already prints that info with these messages:

Exiting... (Quit)
Exiting... (End of file)

The problem is that those strings are translatable strings. So if mplayer is 
compiled with another language as default, it will print other strings, 
making things harder for frontends.

To fix the problem I suggest that mplayer would also print some strings for 
-identify, for example:

ID_EXIT=QUIT
ID_EXIT=EOF
ID_EXIT=ERROR

I attach a patch which does that. Although probably it's not implemented in 
the right way...

What do you think?

-- 
rvm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: id_exit.diff
Type: text/x-diff
Size: 774 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081103/aa332a19/attachment.diff>


More information about the MPlayer-dev-eng mailing list