dvbsrc: use GST_STIME_ARGS for GstClockTimeDiff

No need to use G_GINT64_FORMAT for potentially negative values of
GstClockTimeDiff. Since 1.6 these can be handled with GST_STIME_ARGS.
Plus it creates more readable values in the logs.

https://bugzilla.gnome.org/show_bug.cgi?id=757480
This commit is contained in:
Luis de Bethencourt 2015-11-03 15:05:20 +00:00
parent 1ba4d63d6a
commit 508451005d

View file

@ -2293,8 +2293,8 @@ gst_dvbsrc_tune_fe (GstDvbSrc * object)
if (object->tuning_timeout) if (object->tuning_timeout)
elapsed_time = GST_CLOCK_DIFF (start, gst_util_get_timestamp ()); elapsed_time = GST_CLOCK_DIFF (start, gst_util_get_timestamp ());
GST_LOG_OBJECT (object, GST_LOG_OBJECT (object,
"Tuning. Time elapsed %" G_GUINT64_FORMAT " Limit %" G_GUINT64_FORMAT, "Tuning. Time elapsed %" GST_STIME_FORMAT " Limit %" G_GUINT64_FORMAT,
elapsed_time, object->tuning_timeout); GST_STIME_ARGS (elapsed_time), object->tuning_timeout);
} }
if (!(status & FE_HAS_LOCK)) { if (!(status & FE_HAS_LOCK)) {