ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop

Possibly faster/cleaner.

Suggested-By: Clément Bœsch <ubitux@gmail.com>
This commit is contained in:
Stefano Sabatini 2012-01-08 10:40:11 +01:00
parent ce39ba92c0
commit ec624d7c5c

View File

@ -1032,7 +1032,7 @@ static void xml_print_footer(WriterContext *wctx)
printf("</%sffprobe>\n", xml->fully_qualified ? "ffprobe:" : ""); printf("</%sffprobe>\n", xml->fully_qualified ? "ffprobe:" : "");
} }
#define XML_INDENT() { int i; for (i = 0; i < xml->indent_level; i++) printf(INDENT); } #define XML_INDENT() printf("%*c", xml->indent_level * 4, ' ')
static void xml_print_chapter_header(WriterContext *wctx, const char *chapter) static void xml_print_chapter_header(WriterContext *wctx, const char *chapter)
{ {