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:
b4a298c
)
tsdemux: always take the seek segment stop into account
author
Mathieu Duponchelle
<mathieu@centricular.com>
Tue, 29 Jan 2019 20:57:44 +0000
(21:57 +0100)
committer
Jan Schmidt
<jan@centricular.com>
Wed, 7 Aug 2019 06:39:21 +0000
(16:39 +1000)
Even if an accurate seek was not requested, we should still
respect the seek stop.
gst/mpegtsdemux/tsdemux.c
patch
|
blob
|
history
diff --git
a/gst/mpegtsdemux/tsdemux.c
b/gst/mpegtsdemux/tsdemux.c
index
84f26c3
..
0ac3661
100644
(file)
--- a/
gst/mpegtsdemux/tsdemux.c
+++ b/
gst/mpegtsdemux/tsdemux.c
@@
-2507,9
+2507,11
@@
calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream,
GstSegment *seg = &base->out_segment;
GstClockTime base =
seg->base + seg->position - (seg->start + seg->offset);
+ GstClockTime stop = seg->stop;
+
gst_segment_init (seg, GST_FORMAT_TIME);
seg->start = firstts;
- seg->stop =
GST_CLOCK_TIME_NONE
;
+ seg->stop =
MAX (seg->start, stop)
;
seg->position = firstts;
seg->time = firstts;
seg->rate = demux->rate;