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:
parent
443171bb4c
commit
fcfb9a7794
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user