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

Gianluigi Tiesi mplayer at netfarm.it
Mon Feb 22 13:41:38 CET 2010


Hi,

I've noticed that an error in parsing etc/codecs.conf does not stops
compilation but insteads causes a confusing error later:

codec-cfg.c:546: error: 'builtin_video_codecs' undeclared

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"
on the stdout so the compilation will stop with a less confusing error

e.g. std99 on mingw gcc 4.2 causes a lot of spam and it's not easy to ead parsing error message

also a check in the makefile can be ok

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the MPlayer-dev-eng mailing list