From 025c8343f23eeafd4369cb557539c93127b3e526 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 13 Feb 2015 19:43:24 +0100 Subject: [PATCH] timedvaluecontrolsource: Do not wrongly send value-removed And avoid freeing something we do not own --- libs/gst/controller/gsttimedvaluecontrolsource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gst/controller/gsttimedvaluecontrolsource.c b/libs/gst/controller/gsttimedvaluecontrolsource.c index 42fa976914..c4fc6102d1 100644 --- a/libs/gst/controller/gsttimedvaluecontrolsource.c +++ b/libs/gst/controller/gsttimedvaluecontrolsource.c @@ -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);