rtpmanager: switch G_GINT64_FORMAT for GST_STIME_ARGS
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 3 Nov 2015 14:46:30 +0000 (14:46 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 3 Nov 2015 14:47:00 +0000 (14:47 +0000)
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

gst/rtpmanager/gstrtpjitterbuffer.c

index c5026da..55161b4 100644 (file)
@@ -3496,8 +3496,9 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
 
       if (ret != GST_CLOCK_UNSCHEDULED) {
         now = timer_timeout + MAX (clock_jitter, 0);
-        GST_DEBUG_OBJECT (jitterbuffer, "sync done, %d, #%d, %" G_GINT64_FORMAT,
-            ret, priv->timer_seqnum, clock_jitter);
+        GST_DEBUG_OBJECT (jitterbuffer,
+            "sync done, %d, #%d, %" GST_STIME_FORMAT, ret, priv->timer_seqnum,
+            GST_STIME_ARGS (clock_jitter));
       } else {
         GST_DEBUG_OBJECT (jitterbuffer, "sync unscheduled");
       }