Commit 192b6832 by aquilescanta Committed by Oliver Woodman

Notify eventDispatcher.loadError when wrong kind of playlist is loaded

PiperOrigin-RevId: 309390501
parent eb7c1470
...@@ -545,6 +545,8 @@ public final class DefaultHlsPlaylistTracker ...@@ -545,6 +545,8 @@ public final class DefaultHlsPlaylistTracker
eventDispatcher.loadCompleted(loadEventInfo, C.DATA_TYPE_MANIFEST); eventDispatcher.loadCompleted(loadEventInfo, C.DATA_TYPE_MANIFEST);
} else { } else {
playlistError = new ParserException("Loaded playlist has unexpected type."); playlistError = new ParserException("Loaded playlist has unexpected type.");
eventDispatcher.loadError(
loadEventInfo, C.DATA_TYPE_MANIFEST, playlistError, /* wasCanceled= */ true);
} }
} }
......
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