projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d90347e
)
videomixer: use GST_STIME_ARGS for GstClockTimeDiff
author
Luis de Bethencourt
<luisbg@osg.samsung.com>
Mon, 2 Nov 2015 16:53:15 +0000
(16:53 +0000)
committer
Luis de Bethencourt
<luisbg@osg.samsung.com>
Mon, 2 Nov 2015 16:53:20 +0000
(16:53 +0000)
No need to manually handle negative values of diff, GST_STIME_ARGS does
exactly this.
gst/videomixer/videomixer2.c
patch
|
blob
|
history
diff --git
a/gst/videomixer/videomixer2.c
b/gst/videomixer/videomixer2.c
index 15659862d4a466db5c5723e17c53faa8e066bbcf..25fc35ae3aeb1a8fbca2b45d5a86d25790eef2c8 100644
(file)
--- a/
gst/videomixer/videomixer2.c
+++ b/
gst/videomixer/videomixer2.c
@@
-801,9
+801,9
@@
gst_videomixer2_update_qos (GstVideoMixer2 * mix, gdouble proportion,
GstClockTimeDiff diff, GstClockTime timestamp)
{
GST_DEBUG_OBJECT (mix,
- "Updating QoS: proportion %lf, diff %
s%" GST_
TIME_FORMAT ", timestamp %"
- GST_TIME_FORMAT, proportion,
(diff < 0) ? "-" : ""
,
- GST_TIME_ARGS (
ABS (diff)), GST_TIME_ARGS (
timestamp));
+ "Updating QoS: proportion %lf, diff %
" GST_S
TIME_FORMAT ", timestamp %"
+ GST_TIME_FORMAT, proportion,
GST_STIME_ARGS (diff)
,
+ GST_TIME_ARGS (timestamp));
GST_OBJECT_LOCK (mix);
mix->proportion = proportion;