X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffprobe.c;h=28e056390d29e886dbdc85efb58daea36c1ae4ad;hb=ceef1ee7674f21824a3392c654465b43b06c94fe;hp=77c343a96aa49ac8ee8a13bdce5e2dc5e2948980;hpb=49c207b8205bf018bd3afff9b26222178f111bbc;p=ffmpeg diff --git a/ffprobe.c b/ffprobe.c index 77c343a96aa..28e056390d2 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -926,6 +926,7 @@ static av_cold int xml_init(WriterContext *wctx, const char *args, void *opaque) av_log(wctx, AV_LOG_ERROR, \ "XSD-compliant output selected but option '%s' was selected, XML output may be non-compliant.\n" \ "You need to disable such option with '-no%s'\n", opt_name, opt_name); \ + return AVERROR(EINVAL); \ } CHECK_COMPLIANCE(show_private_data, "private"); CHECK_COMPLIANCE(show_value_unit, "unit"); @@ -1438,9 +1439,9 @@ end: static void show_usage(void) { - printf("Simple multimedia streams analyzer\n"); - printf("usage: %s [OPTIONS] [INPUT_FILE]\n", program_name); - printf("\n"); + av_log(NULL, AV_LOG_INFO, "Simple multimedia streams analyzer\n"); + av_log(NULL, AV_LOG_INFO, "usage: %s [OPTIONS] [INPUT_FILE]\n", program_name); + av_log(NULL, AV_LOG_INFO, "\n"); } static int opt_format(const char *opt, const char *arg)