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:
05239c5
)
baseparse: Update internal position even if not linked
author
Edward Hervey
<edward@centricular.com>
Mon, 12 Oct 2015 15:29:26 +0000
(17:29 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Tue, 13 Oct 2015 09:06:28 +0000
(11:06 +0200)
Our current position has nothing to do with being linked or not.
Avoids having stray segment updates fired every 2s
libs/gst/base/gstbaseparse.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbaseparse.c
b/libs/gst/base/gstbaseparse.c
index
80334fb
..
c9a57c5
100644
(file)
--- a/
libs/gst/base/gstbaseparse.c
+++ b/
libs/gst/base/gstbaseparse.c
@@
-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;