ges: initialize timeline_duration value
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 10 Feb 2015 10:29:39 +0000 (10:29 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 10 Feb 2015 10:29:39 +0000 (10:29 +0000)
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

index f307358..fe1ce00 100644 (file)
@@ -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;