ffprobe: use more meaningful names for writer chapter/section header/footer function

The passed argument is supposed to be the chapter/section name, rather
than the header/footer. Less confusing.
pull/3/head
Stefano Sabatini 13 years ago
parent ec624d7c5c
commit 5ccdb907c1
  1. 16
      ffprobe.c

@ -232,34 +232,34 @@ static inline void writer_print_footer(WriterContext *wctx)
} }
static inline void writer_print_chapter_header(WriterContext *wctx, static inline void writer_print_chapter_header(WriterContext *wctx,
const char *header) const char *chapter)
{ {
if (wctx->writer->print_chapter_header) if (wctx->writer->print_chapter_header)
wctx->writer->print_chapter_header(wctx, header); wctx->writer->print_chapter_header(wctx, chapter);
wctx->nb_section = 0; wctx->nb_section = 0;
} }
static inline void writer_print_chapter_footer(WriterContext *wctx, static inline void writer_print_chapter_footer(WriterContext *wctx,
const char *footer) const char *chapter)
{ {
if (wctx->writer->print_chapter_footer) if (wctx->writer->print_chapter_footer)
wctx->writer->print_chapter_footer(wctx, footer); wctx->writer->print_chapter_footer(wctx, chapter);
wctx->nb_chapter++; wctx->nb_chapter++;
} }
static inline void writer_print_section_header(WriterContext *wctx, static inline void writer_print_section_header(WriterContext *wctx,
const char *header) const char *section)
{ {
if (wctx->writer->print_section_header) if (wctx->writer->print_section_header)
wctx->writer->print_section_header(wctx, header); wctx->writer->print_section_header(wctx, section);
wctx->nb_item = 0; wctx->nb_item = 0;
} }
static inline void writer_print_section_footer(WriterContext *wctx, static inline void writer_print_section_footer(WriterContext *wctx,
const char *footer) const char *section)
{ {
if (wctx->writer->print_section_footer) if (wctx->writer->print_section_footer)
wctx->writer->print_section_footer(wctx, footer); wctx->writer->print_section_footer(wctx, section);
wctx->nb_section++; wctx->nb_section++;
} }

Loading…
Cancel
Save