summaryrefslogtreecommitdiff
path: root/ges
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-02-10 10:29:39 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-02-10 10:29:39 +0000
commit7dd8dbab282f9497ccc38857163134fce40d7013 (patch)
tree7aef72413e46b906fcc0c5017c9ecd4ee8cca503 /ges
parentfa3658053ea84c1a31dd4f5fe94553a37939b368 (diff)
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
Diffstat (limited to 'ges')
-rw-r--r--ges/ges-track.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ges/ges-track.c b/ges/ges-track.c
index f307358a..fe1ce00d 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;