From 32de7d857da591bd118ffe34b8055b1ca3a3d0bd Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 6 Feb 2020 12:43:57 -0300 Subject: [PATCH] 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. --- plugins/nle/nlesource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/nle/nlesource.c b/plugins/nle/nlesource.c index 8fc9e711d4..18db65cb72 100644 --- a/plugins/nle/nlesource.c +++ b/plugins/nle/nlesource.c @@ -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,