Commit 5823f8b4 authored by Thiago Santos's avatar Thiago Santos
Browse files

adaptivedemux: inform subclass when headers/index are being downloaded

This allows the subclasses to know if the chunks that are downloaded are
part of the header or of the index and will parse the parts that are
of their interest.
parent 0b499484
......@@ -1654,9 +1654,11 @@ gst_adaptive_demux_stream_download_header_fragment (GstAdaptiveDemuxStream *
G_GINT64_FORMAT, stream->fragment.header_uri,
stream->fragment.header_range_start, stream->fragment.header_range_end);
stream->downloading_header = TRUE;
ret = gst_adaptive_demux_stream_download_uri (demux, stream,
stream->fragment.header_uri, stream->fragment.header_range_start,
stream->fragment.header_range_end);
stream->downloading_header = FALSE;
}
/* check if we have an index */
......@@ -1667,9 +1669,11 @@ gst_adaptive_demux_stream_download_header_fragment (GstAdaptiveDemuxStream *
"Fetching index %s %" G_GINT64_FORMAT "-%" G_GINT64_FORMAT,
stream->fragment.index_uri,
stream->fragment.index_range_start, stream->fragment.index_range_end);
stream->downloading_index = TRUE;
ret = gst_adaptive_demux_stream_download_uri (demux, stream,
stream->fragment.index_uri, stream->fragment.index_range_start,
stream->fragment.index_range_end);
stream->downloading_index = FALSE;
}
}
......
......@@ -125,6 +125,9 @@ struct _GstAdaptiveDemuxStream
gboolean restart_download;
gboolean discont;
gboolean downloading_header;
gboolean downloading_index;
/* download tooling */
GstElement *src;
GstPad *src_srcpad;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment