timeline: Do not use meaningless offset values when snapping

This commit is contained in:
Thibault Saunier 2012-05-21 19:38:10 -04:00
parent 410a3e4c3f
commit 7012280e48

View file

@ -855,6 +855,9 @@ ges_timeline_snap_position (GESTimeline * timeline, GESTrackObject * trackobj,
nxt_iter = g_sequence_iter_next (nxt_iter);
}
if (ret == NULL)
off = G_MAXUINT64;
prev_iter = g_sequence_iter_prev (iter);
while (!g_sequence_iter_is_begin (prev_iter)) {
prev_tc = g_sequence_get (prev_iter);