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:
368ee8a
)
clock: Return FALSE in all paths that don't set out parameters in gst_clock_add_obser...
author
Sebastian Dröge
<sebastian@centricular.com>
Fri, 1 Apr 2016 19:41:51 +0000
(22:41 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Fri, 1 Apr 2016 22:34:46 +0000
(
01:34
+0300)
It returned TRUE when regression failed, while not setting any of the out
parameters. This caused uninitialized data from the stack to be used for
setting the clock calibration.
gst/gstclock.c
patch
|
blob
|
history
diff --git
a/gst/gstclock.c
b/gst/gstclock.c
index
7e9be2f
..
3f6d891
100644
(file)
--- a/
gst/gstclock.c
+++ b/
gst/gstclock.c
@@
-1474,7
+1474,7
@@
invalid:
{
/* no valid regression has been done, ignore the result then */
GST_CLOCK_SLAVE_UNLOCK (clock);
- return
TRU
E;
+ return
FALS
E;
}
}