nlesource: Fix seeks when used standalone

The 'start' of nleobject is in the 'composition' scale, inpoint is in
the media scale, when outside a composition, a nleobject->start value
doesn't mean anything.
This commit is contained in:
Thibault Saunier 2020-02-06 12:43:57 -03:00
parent c63586e0a7
commit 32de7d857d

View file

@ -539,7 +539,8 @@ nle_source_prepare (NleObject * object)
source->priv->seek_event =
gst_event_new_seek (1.0, GST_FORMAT_TIME,
GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH,
GST_SEEK_TYPE_SET, object->start, GST_SEEK_TYPE_SET, object->stop);
GST_SEEK_TYPE_SET, object->inpoint, GST_SEEK_TYPE_SET,
object->inpoint + object->duration);
g_mutex_unlock (&source->priv->seek_lock);
GST_OBJECT_LOCK (source);
priv->probeid = gst_pad_add_probe (pad,