From 911023eb882d183b4f82756a6067e86bda431b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 30 Mar 2014 18:06:51 +0200 Subject: [PATCH] hlsdemux: Store buffer end position in segment.position --- ext/hls/gsthlsdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 65642d2742..a2e6575e83 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -886,6 +886,9 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux) } demux->segment.position = GST_BUFFER_TIMESTAMP (buf); + if (demux->segment.rate > 0) + demux->segment.position += GST_BUFFER_DURATION (buf); + ret = gst_pad_push (demux->srcpad, buf); if (ret != GST_FLOW_OK) goto error_pushing;