Commit 4092e8ca by Oliver Woodman

Fix GitHub issue #572

parent 91b47cfe
...@@ -187,9 +187,10 @@ public class HlsChunkSource { ...@@ -187,9 +187,10 @@ public class HlsChunkSource {
if (playlist.type == HlsPlaylist.TYPE_MEDIA) { if (playlist.type == HlsPlaylist.TYPE_MEDIA) {
variants = new Variant[] {new Variant(0, playlistUrl, 0, null, -1, -1)}; variants = new Variant[] {new Variant(0, playlistUrl, 0, null, -1, -1)};
variantPlaylists = new HlsMediaPlaylist[] {(HlsMediaPlaylist) playlist}; variantPlaylists = new HlsMediaPlaylist[1];
variantLastPlaylistLoadTimesMs = new long[1]; variantLastPlaylistLoadTimesMs = new long[1];
variantBlacklistTimes = new long[1]; variantBlacklistTimes = new long[1];
setMediaPlaylist(0, (HlsMediaPlaylist) playlist);
// We won't be adapting between different variants. // We won't be adapting between different variants.
maxWidth = -1; maxWidth = -1;
maxHeight = -1; maxHeight = -1;
......
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 sign in to comment