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:
Edward Hervey 2015-10-12 17:29:26 +02:00 committed by Edward Hervey
parent 224da699a9
commit 55f6582159

View file

@ -2448,8 +2448,9 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
}
/* Update current running segment position */
if (ret == GST_FLOW_OK && last_stop != GST_CLOCK_TIME_NONE &&
parse->segment.position < last_stop)
if ((ret == GST_FLOW_OK || ret == GST_FLOW_NOT_LINKED)
&& last_stop != GST_CLOCK_TIME_NONE
&& parse->segment.position < last_stop)
parse->segment.position = last_stop;
return ret;