From d90347edf215e1e043083181a8b7985dd860c981 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 2 Nov 2015 16:43:46 +0000 Subject: [PATCH] deinterlace: use GST_STIME_ARGS for GstClockTimeDiff No need to manually handle negative values of diff, GST_STIME_ARGS is available for this. --- gst/deinterlace/gstdeinterlace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index b6704cd239..fa0c5f4a00 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -1191,9 +1191,9 @@ gst_deinterlace_update_qos (GstDeinterlace * self, gdouble proportion, GstClockTimeDiff diff, GstClockTime timestamp) { GST_DEBUG_OBJECT (self, - "Updating QoS: proportion %lf, diff %s%" GST_TIME_FORMAT ", timestamp %" - GST_TIME_FORMAT, proportion, (diff < 0) ? "-" : "", - GST_TIME_ARGS (ABS (diff)), GST_TIME_ARGS (timestamp)); + "Updating QoS: proportion %lf, diff %" GST_STIME_FORMAT ", timestamp %" + GST_TIME_FORMAT, proportion, GST_STIME_ARGS (diff), + GST_TIME_ARGS (timestamp)); GST_OBJECT_LOCK (self); self->proportion = proportion;