MediaPlayer2: fix checking for next datasources

Test: cts testPlaylist
Bug: 122073361
Change-Id: I0306b09b1f5d3796a4a74d4fe76a5c53d1ea6f57
This commit is contained in:
Wei Jia
2019-01-15 15:12:52 -08:00
parent 27b6918c71
commit 2b5dfbc265

View File

@@ -775,7 +775,7 @@ public class MediaPlayer2 implements AutoCloseable
}
boolean hasError = false;
for (DataSourceDesc dsd : dsds) {
if (dsd != null) {
if (dsd == null) {
hasError = true;
continue;
}