aggregator: use GST_STIME_FORMAT for GstClockTimeDiff
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 5 Nov 2015 12:36:48 +0000 (12:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
No need to manually handle negative value of deadline, GST_STIME_FORMAT does
exactly this.

libs/gst/base/gstaggregator.c

index c2b8475..ec297df 100644 (file)
@@ -701,9 +701,8 @@ gst_aggregator_wait_and_check (GstAggregator * self, gboolean * timeout)
     }
 
     GST_DEBUG_OBJECT (self,
-        "clock returned %d (jitter: %s%" GST_TIME_FORMAT ")",
-        status, (jitter < 0 ? "-" : " "),
-        GST_TIME_ARGS ((jitter < 0 ? -jitter : jitter)));
+        "clock returned %d (jitter: %" GST_STIME_FORMAT ")",
+        status, GST_STIME_ARGS (jitter));
 
     /* we timed out */
     if (status == GST_CLOCK_OK || status == GST_CLOCK_EARLY) {