deinterlace: use GST_STIME_ARGS for GstClockTimeDiff

No need to manually handle negative values of diff, GST_STIME_ARGS is
available for this.
This commit is contained in:
Luis de Bethencourt 2015-11-02 16:43:46 +00:00
parent 133e7bab32
commit d90347edf2

View file

@ -1191,9 +1191,9 @@ gst_deinterlace_update_qos (GstDeinterlace * self, gdouble proportion,
GstClockTimeDiff diff, GstClockTime timestamp) GstClockTimeDiff diff, GstClockTime timestamp)
{ {
GST_DEBUG_OBJECT (self, GST_DEBUG_OBJECT (self,
"Updating QoS: proportion %lf, diff %s%" GST_TIME_FORMAT ", timestamp %" "Updating QoS: proportion %lf, diff %" GST_STIME_FORMAT ", timestamp %"
GST_TIME_FORMAT, proportion, (diff < 0) ? "-" : "", GST_TIME_FORMAT, proportion, GST_STIME_ARGS (diff),
GST_TIME_ARGS (ABS (diff)), GST_TIME_ARGS (timestamp)); GST_TIME_ARGS (timestamp));
GST_OBJECT_LOCK (self); GST_OBJECT_LOCK (self);
self->proportion = proportion; self->proportion = proportion;