composition: Set the seqnum only when receiving the actual seek event

Setting it before calling seek_handling is racy!

Co-Authored by: Thibault Saunier <tsaunier@gnome.org>
This commit is contained in:
Mathieu Duponchelle 2014-07-10 15:46:19 +02:00 committed by Thibault Saunier
parent f6cb54c2ef
commit 75a809cf75

View file

@ -469,10 +469,9 @@ _seek_pipeline_func (SeekData * seekd)
GST_FIXME_OBJECT (seekd->comp,
"BE smarter and do not force pipeline update on"
" seek (though it just does basic comparision and not full rebuild)");
seek_handling (seekd->comp, TRUE, TRUE);
priv->reset_time = TRUE;
GNL_OBJECT (seekd->comp)->wanted_seqnum = gst_event_get_seqnum (seekd->event);
seek_handling (seekd->comp, FALSE, TRUE);
priv->reset_time = FALSE;
beach: