ffprobe: fix chapter printing, fix JSON output
authorStefano Sabatini <stefasab@gmail.com>
Tue, 29 May 2012 16:08:00 +0000 (18:08 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 29 May 2012 16:11:36 +0000 (18:11 +0200)
commitad381ac97fadaab681075ef9331e917683805233
tree8df0fea6e37acbf23b8a2c2fd7718167ed243880
parenta5e83a5d4c7d42c4035b8277ac13a64a6959a6f0
ffprobe: fix chapter printing, fix JSON output

Make writer_print_chapter_header() set the internal values *before* the
private writer callback is called, otherwise the accessed internal values
will be wrong.

Fix regression introduced in fa6cb2fdffe.

Found-By: Daemon404
ffprobe.c