deinterlace: use GST_STIME_ARGS for GstClockTimeDiff
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 2 Nov 2015 16:43:46 +0000 (16:43 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 2 Nov 2015 16:45:34 +0000 (16:45 +0000)
No need to manually handle negative values of diff, GST_STIME_ARGS is
available for this.

gst/deinterlace/gstdeinterlace.c

index b6704cd..fa0c5f4 100644 (file)
@@ -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;