mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
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:
parent
c63586e0a7
commit
32de7d857d
1 changed files with 2 additions and 1 deletions
|
@ -539,7 +539,8 @@ nle_source_prepare (NleObject * object)
|
||||||
source->priv->seek_event =
|
source->priv->seek_event =
|
||||||
gst_event_new_seek (1.0, GST_FORMAT_TIME,
|
gst_event_new_seek (1.0, GST_FORMAT_TIME,
|
||||||
GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH,
|
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);
|
g_mutex_unlock (&source->priv->seek_lock);
|
||||||
GST_OBJECT_LOCK (source);
|
GST_OBJECT_LOCK (source);
|
||||||
priv->probeid = gst_pad_add_probe (pad,
|
priv->probeid = gst_pad_add_probe (pad,
|
||||||
|
|
Loading…
Reference in a new issue