timedvaluecontrolsource: Do not wrongly send value-removed
authorThibault Saunier <tsaunier@gnome.org>
Fri, 13 Feb 2015 18:43:24 +0000 (19:43 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 13 Feb 2015 18:59:57 +0000 (19:59 +0100)
And avoid freeing something we do not own

libs/gst/controller/gsttimedvaluecontrolsource.c

index 42fa976..c4fc610 100644 (file)
@@ -348,7 +348,10 @@ gst_timed_value_control_source_unset (GstTimedValueControlSource * self,
       self->nvalues--;
       self->valid_cache = FALSE;
       res = TRUE;
+    } else {
+      cp = NULL;
     }
+
   }
   g_mutex_unlock (&self->lock);