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:
c05e238
)
controller: Silence a warning from the GSequence being NULL.
author
Jan Schmidt
<thaytan@noraisin.net>
Fri, 22 May 2009 08:41:36 +0000
(09:41 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Fri, 22 May 2009 08:43:02 +0000
(09:43 +0100)
Fix a warning that occurs when the self->priv->values is NULL and
the code tries to retrieve an iterator from it. The warning was showing
up in the checks for the volume element.
libs/gst/controller/gstinterpolation.c
patch
|
blob
|
history
diff --git
a/libs/gst/controller/gstinterpolation.c
b/libs/gst/controller/gstinterpolation.c
index
917250a
..
fdf7b6b
100644
(file)
--- a/
libs/gst/controller/gstinterpolation.c
+++ b/
libs/gst/controller/gstinterpolation.c
@@
-535,7
+535,8
@@
_interpolate_linear_get_##vtype (GstInterpolationControlSource *self, GstClockTi
g_value_init (&cp.value, self->priv->type); \
g_value_copy (&self->priv->default_value, &cp.value); \
cp1 = &cp; \
- iter = g_sequence_get_begin_iter (self->priv->values); \
+ if (self->priv->values) \
+ iter = g_sequence_get_begin_iter (self->priv->values); \
} \
if (iter) { \
gdouble slope; \