Notify eventDispatcher.loadError when wrong kind of playlist is loaded

PiperOrigin-RevId: 309390501
This commit is contained in:
aquilescanta 2020-05-01 12:48:38 +01:00 committed by Oliver Woodman
parent eb7c14704f
commit 192b6832b6

View file

@ -545,6 +545,8 @@ public final class DefaultHlsPlaylistTracker
eventDispatcher.loadCompleted(loadEventInfo, C.DATA_TYPE_MANIFEST);
} else {
playlistError = new ParserException("Loaded playlist has unexpected type.");
eventDispatcher.loadError(
loadEventInfo, C.DATA_TYPE_MANIFEST, playlistError, /* wasCanceled= */ true);
}
}