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
@ -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…
x
Reference in New Issue
Block a user