clock: Fix _STIME_FORMAT macros
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 15 Jun 2015 14:06:00 +0000 (10:06 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 15 Jun 2015 14:06:00 +0000 (10:06 -0400)
commit5bdd92be750789c956f754042966efa00d192a39
treee7c45ff9b1a91ab2e3f094fbb8fb13b3b023a4d1
parent7be8acbfb0e08ea8bcd6833a7e0a71d1132f6b14
clock: Fix _STIME_FORMAT macros

This macro didn't work well as it relied on the sign on the last
divided number (number of days). This value is most of the time
zero, and zero is considered positive in printf. Instead, deal with
the sign manually, and resuse the original macros for the rest. This
actually simplify the macro a lot.
gst/gstclock.h