ffprobe: rework checking logic in writer_print_time() and writer_print_rational()
authorStefano Sabatini <stefasab@gmail.com>
Mon, 24 Sep 2012 16:18:56 +0000 (18:18 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 25 Sep 2012 07:20:57 +0000 (09:20 +0200)
commit4b370d6126ab74c6112e2c1edfad3f48ebcf08ad
treed20bc3b8202bac656d6323d27540e82e5a2d9d3d
parent4390f8c28daab9ac9f2c7b9164bdb79b3689d484
ffprobe: rework checking logic in writer_print_time() and writer_print_rational()

Make writer_print_time() and writer_print_rational() always call
writer_print_int() or writer_print_string(). This way the checks for
determining if the value should be printed or not are consistently
performed in the low level functions.

writer_print_rational() is moved downward in order to avoid a forward
reference.

Simplify/amend the overall logic.
ffprobe.c