mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 13:21:16 +00:00
hlsdemux: Store buffer end position in segment.position
This commit is contained in:
parent
7b2cfa6303
commit
911023eb88
1 changed files with 3 additions and 0 deletions
|
@ -886,6 +886,9 @@ gst_hls_demux_stream_loop (GstHLSDemux * demux)
|
||||||
}
|
}
|
||||||
|
|
||||||
demux->segment.position = GST_BUFFER_TIMESTAMP (buf);
|
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);
|
ret = gst_pad_push (demux->srcpad, buf);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
goto error_pushing;
|
goto error_pushing;
|
||||||
|
|
Loading…
Reference in a new issue