mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
baseparse: Update internal position even if not linked
Our current position has nothing to do with being linked or not. Avoids having stray segment updates fired every 2s
This commit is contained in:
parent
05239c58e3
commit
72a7bf590e
1 changed files with 3 additions and 2 deletions
|
@ -2448,8 +2448,9 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update current running segment position */
|
/* Update current running segment position */
|
||||||
if (ret == GST_FLOW_OK && last_stop != GST_CLOCK_TIME_NONE &&
|
if ((ret == GST_FLOW_OK || ret == GST_FLOW_NOT_LINKED)
|
||||||
parse->segment.position < last_stop)
|
&& last_stop != GST_CLOCK_TIME_NONE
|
||||||
|
&& parse->segment.position < last_stop)
|
||||||
parse->segment.position = last_stop;
|
parse->segment.position = last_stop;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue