[MPlayer-dev-eng] parsing error on etc/codecs.conf does stop compilation and causes confusing error

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Feb 22 19:44:52 CET 2010


On Mon, Feb 22, 2010 at 01:41:38PM +0100, Gianluigi Tiesi wrote:
> I think 
> 
>     /*
>      * Take path to codecs.conf from command line, or fall back on
>      * etc/codecs.conf
>      */
>     if (!(nr_codecs = parse_codec_cfg((argc>1)?argv[1]:"etc/codecs.conf")))
>         exit(1);
> 
> can write something like
> # error "parsing codecs conf"

parse_codec_cfg already prints an error.

> also a check in the makefile can be ok

Make already checks, I have no idea why it does not stop though.
The behaviour can be improved by adding
.DELETE_ON_ERROR:
to the Makefile.



More information about the MPlayer-dev-eng mailing list