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:
Jan Schmidt 2016-03-08 01:24:20 +11:00
parent f3397e0d54
commit f32c7aa88a

View file

@ -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) {