projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17efc4
)
basesink: format negative values better
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 4 Oct 2010 13:49:18 +0000
(15:49 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 4 Oct 2010 13:56:59 +0000
(15:56 +0200)
Format negative values properly in the debug log.
libs/gst/base/gstbasesink.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasesink.c
b/libs/gst/base/gstbasesink.c
index
a14542a
..
aa39fa9
100644
(file)
--- a/
libs/gst/base/gstbasesink.c
+++ b/
libs/gst/base/gstbasesink.c
@@
-2420,8
+2420,8
@@
again:
* or sync is disabled with GST_CLOCK_BADTIME. */
status = gst_base_sink_wait_clock (basesink, stime, &jitter);
- GST_DEBUG_OBJECT (basesink, "clock returned %d, jitter %" GST_TIME_FORMAT,
- status,
GST_TIME_ARGS (jitter
));
+ GST_DEBUG_OBJECT (basesink, "clock returned %d, jitter %
c%
" GST_TIME_FORMAT,
+ status,
(jitter < 0 ? '-' : ' '), GST_TIME_ARGS (ABS (jitter)
));
/* invalid time, no clock or sync disabled, just render */
if (status == GST_CLOCK_BADTIME)