From b118e869a2e3fda6e78867e23c5982e9be06c4bb Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 20 Mar 2009 11:26:30 +0200 Subject: [PATCH] controller: Fix generation of control-change arrays. When generating arrays of control changes timestamp variable was used instead the local ts variable that we increment when stepping through the array. Pointed out by Martin Pokorny. --- libs/gst/controller/gstinterpolation.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/gst/controller/gstinterpolation.c b/libs/gst/controller/gstinterpolation.c index 695333dfc5..4590372659 100644 --- a/libs/gst/controller/gstinterpolation.c +++ b/libs/gst/controller/gstinterpolation.c @@ -134,7 +134,7 @@ interpolate_none_get_##type##_value_array (GstInterpolationControlSource *self, \ g_mutex_lock (self->lock); \ for(i = 0; i < value_array->nbsamples; i++) { \ - ret = _interpolate_none_get_##type (self, timestamp); \ + ret = _interpolate_none_get_##type (self, ts); \ if (!ret) { \ g_mutex_unlock (self->lock); \ return FALSE; \ @@ -207,7 +207,7 @@ interpolate_none_get_boolean_value_array (GstInterpolationControlSource * self, g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_none_get (self, timestamp); + ret = _interpolate_none_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE; @@ -231,7 +231,7 @@ interpolate_none_get_enum_value_array (GstInterpolationControlSource * self, g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_none_get (self, timestamp); + ret = _interpolate_none_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE; @@ -255,7 +255,7 @@ interpolate_none_get_string_value_array (GstInterpolationControlSource * self, g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_none_get (self, timestamp); + ret = _interpolate_none_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE; @@ -350,7 +350,7 @@ interpolate_trigger_get_##type##_value_array (GstInterpolationControlSource *sel \ g_mutex_lock (self->lock); \ for(i = 0; i < value_array->nbsamples; i++) { \ - ret = _interpolate_trigger_get_##type (self, timestamp); \ + ret = _interpolate_trigger_get_##type (self, ts); \ if (!ret) { \ g_mutex_unlock (self->lock); \ return FALSE; \ @@ -425,7 +425,7 @@ interpolate_trigger_get_boolean_value_array (GstInterpolationControlSource * g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_trigger_get (self, timestamp); + ret = _interpolate_trigger_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE; @@ -449,7 +449,7 @@ interpolate_trigger_get_enum_value_array (GstInterpolationControlSource * self, g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_trigger_get (self, timestamp); + ret = _interpolate_trigger_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE; @@ -473,7 +473,7 @@ interpolate_trigger_get_string_value_array (GstInterpolationControlSource * g_mutex_lock (self->lock); for (i = 0; i < value_array->nbsamples; i++) { - ret = _interpolate_trigger_get (self, timestamp); + ret = _interpolate_trigger_get (self, ts); if (!ret) { g_mutex_unlock (self->lock); return FALSE;