From 7dd8dbab282f9497ccc38857163134fce40d7013 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 10 Feb 2015 10:29:39 +0000 Subject: [PATCH] ges: initialize timeline_duration value If priv->timeline is False the function does not set any value for timeline_duration before using it in gap_new (). Initialize the value to aviod unexpected behaviour. CID #1268405 --- ges/ges-track.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ges/ges-track.c b/ges/ges-track.c index f307358a6a..fe1ce00d67 100644 --- a/ges/ges-track.c +++ b/ges/ges-track.c @@ -183,7 +183,7 @@ update_gaps (GESTrack * track) GSequenceIter *it; GESTrackElement *trackelement; - GstClockTime start, end, duration = 0, timeline_duration; + GstClockTime start, end, duration = 0, timeline_duration = 0; GESTrackPrivate *priv = track->priv;