Commit 6b775efd by Oliver Woodman

Fix playback of HLS media playlists

parent 1a5d1235
...@@ -144,11 +144,10 @@ public class HlsRendererBuilder implements RendererBuilder { ...@@ -144,11 +144,10 @@ public class HlsRendererBuilder implements RendererBuilder {
player.onRenderersError(e); player.onRenderersError(e);
return; return;
} }
} if (variantIndices.length == 0) {
player.onRenderersError(new IllegalStateException("No variants selected."));
if (variantIndices.length == 0) { return;
player.onRenderersError(new IllegalStateException("No variants selected.")); }
return;
} }
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent); DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
......
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