examples: use GST_STIME_FORMAT for GstClockTimeDiff
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 2 Nov 2015 14:06:39 +0000 (14:06 +0000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 2 Nov 2015 15:50:50 +0000 (15:50 +0000)
GST_STIME_FORMAT is more appropriate for GstClockTimeDiff since it can
handle negative values better.

https://bugzilla.gnome.org/show_bug.cgi?id=757480

tests/examples/seek/scrubby.c

index 8afcc88..f9b8c8c 100644 (file)
@@ -235,7 +235,7 @@ do_seek (GtkWidget * widget, gboolean flush, gboolean segment)
 
   diff = cur_time - prev_time;
 
-  GST_DEBUG ("diff: %" GST_TIME_FORMAT, GST_TIME_ARGS (diff));
+  GST_DEBUG ("diff: %" GST_STIME_FORMAT, GST_STIME_ARGS (diff));
 
   start = prev_range * duration / RANGE_PREC;
   /* play 50 milliseconds */