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

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Nov 11 08:33:43 CET 2008


Hello,
On Mon, Nov 10, 2008 at 11:50:53PM +0100, rvm wrote:
> Maybe the best would be to change the type of "how" from const char * to an 
> int or enum, and then print one thing or another (in a switch) instead of 
> having to compare the strings, but that would require some deeper changes.

IMO that is the only acceptable solution.
Also I think you should always print an ID_EXIT even when you do not
have any "how" set.
To distinguish the error conditions you could also just use different exit codes.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list