projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63586e
)
nlesource: Fix seeks when used standalone
author
Thibault Saunier
<tsaunier@igalia.com>
Thu, 6 Feb 2020 15:43:57 +0000
(12:43 -0300)
committer
Thibault Saunier
<tsaunier@igalia.com>
Wed, 12 Feb 2020 20:50:37 +0000
(17:50 -0300)
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
patch
|
blob
|
history
diff --git
a/plugins/nle/nlesource.c
b/plugins/nle/nlesource.c
index 8fc9e711d48d90fc222ffc4b8e9ddf9bb6805112..18db65cb72277813e3253c39ecdec109407d7e93 100644
(file)
--- 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,