From c0a0102b41db7bff40643ec2dd3f0ed916c2d41d Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 5 Nov 2015 12:36:48 +0000 Subject: [PATCH] aggregator: use GST_STIME_FORMAT for GstClockTimeDiff No need to manually handle negative value of deadline, GST_STIME_FORMAT does exactly this. --- libs/gst/base/gstaggregator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index c2b84753cf..ec297df7f6 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -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) {