mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
hlsdemux: Adjust downstream buffer offsets
When fetching a byte-region from a server resource, adjust the downstream buffer offsets so that downstream doesn't know. This is because id3demux insists on the first offset being 0. Later we might strip ID3 headers entirely and this will be unneeded.
This commit is contained in:
parent
f3397e0d54
commit
f32c7aa88a
1 changed files with 1 additions and 2 deletions
|
@ -782,8 +782,7 @@ gst_hls_demux_data_received (GstAdaptiveDemux * demux,
|
|||
GstHLSDemux *hlsdemux = GST_HLS_DEMUX_CAST (demux);
|
||||
|
||||
if (hls_stream->current_offset == -1)
|
||||
hls_stream->current_offset =
|
||||
GST_BUFFER_OFFSET_IS_VALID (buffer) ? GST_BUFFER_OFFSET (buffer) : 0;
|
||||
hls_stream->current_offset = 0;
|
||||
|
||||
/* Is it encrypted? */
|
||||
if (hls_stream->current_key) {
|
||||
|
|
Loading…
Reference in a new issue