Don't clear audioSessionId when audio disabled

Issue: #8585
#minor-release
PiperOrigin-RevId: 357553237
This commit is contained in:
olly 2021-02-15 12:37:15 +00:00 committed by kim-vde
parent 1b6dd40aa5
commit f52e4bed3d
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,9 @@
* Add support for MP4 and QuickTime meta atoms that are not full atoms.
* UI:
* Add builder for `PlayerNotificationManager`.
* Audio:
* Fix `SimpleExoPlayer` reporting audio session ID as 0 in some cases
([#8585](https://github.com/google/ExoPlayer/issues/8585)).
* Library restructuring:
* `DebugTextViewHelper` moved from `ui` package to `util` package.
* Spherical UI components moved from `video.spherical` package to

View file

@ -2140,7 +2140,6 @@ public class SimpleExoPlayer extends BasePlayer
analyticsCollector.onAudioDisabled(counters);
audioFormat = null;
audioDecoderCounters = null;
audioSessionId = C.AUDIO_SESSION_ID_UNSET;
}
@Override