examples: use GST_STIME_FORMAT for GstClockTimeDiff

GST_STIME_FORMAT is more appropriate for GstClockTimeDiff since it can
handle negative values better.

https://bugzilla.gnome.org/show_bug.cgi?id=757480
This commit is contained in:
Luis de Bethencourt 2015-11-02 14:06:39 +00:00
parent 443171bb4c
commit fcfb9a7794

View 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 */