mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
controller: Silence a warning from the GSequence being NULL.
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.
This commit is contained in:
parent
c05e2382cb
commit
2437a08666
1 changed files with 2 additions and 1 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue