[gst-cvs] gstreamer: controller: Fix generation of control-change arrays.

Stefan Kost ensonic at kemper.freedesktop.org
Fri Mar 20 02:29:33 PDT 2009


Module: gstreamer
Branch: master
Commit: b118e869a2e3fda6e78867e23c5982e9be06c4bb
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=b118e869a2e3fda6e78867e23c5982e9be06c4bb

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Fri Mar 20 11:26:30 2009 +0200

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 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libs/gst/controller/gstinterpolation.c b/libs/gst/controller/gstinterpolation.c
index 695333d..4590372 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;





More information about the Gstreamer-commits mailing list