Skip to content

Commit

Permalink
Fix NPE in HLS deriveAudioFormat.
Browse files Browse the repository at this point in the history
Issue:#5868
PiperOrigin-RevId: 247613811
  • Loading branch information
tonihei authored and ojw28 committed May 15, 2019
1 parent 9549532 commit 34dd4b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### dev-v2 (not yet released) ###

* Fix NPE when using HLS chunkless preparation
([#5868](https://github.com/google/ExoPlayer/issues/5868)).
* Offline: Add option to remove all downloads.
* Decoders:
* Prefer codecs that advertise format support over ones that do not, even if
Expand All @@ -11,7 +13,7 @@
* Audio: fix an issue where not all audio was played out when the configuration
for the underlying track was changing (e.g., at some period transitions).
* UI: Change playback controls toggle from touch down to touch up events
([#5784](https://github.com/google/ExoPlayer/issues/5784)).
([#5784](https://github.com/google/ExoPlayer/issues/5784)).

### 2.10.0 ###

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ private static Format deriveAudioFormat(
if (isPrimaryTrackInVariant) {
channelCount = variantFormat.channelCount;
selectionFlags = variantFormat.selectionFlags;
roleFlags = mediaTagFormat.roleFlags;
roleFlags = variantFormat.roleFlags;
language = variantFormat.language;
label = variantFormat.label;
}
Expand Down

0 comments on commit 34dd4b1

Please sign in to comment.