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
This commit is contained in:
Luis de Bethencourt 2015-02-10 10:29:39 +00:00
parent fa3658053e
commit 7dd8dbab28

View 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;