Apply suggestions from code review

Co-Authored-By: Tobias Groza <TobiGr@users.noreply.github.com>
This commit is contained in:
Redirion 2019-10-07 11:27:43 +02:00 committed by GitHub
parent 50b51f931e
commit 7aeb1ec8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ public class PlayQueuePlaybackController extends DefaultControlDispatcher {
@Override
public boolean dispatchSetPlayWhenReady(Player player, boolean playWhenReady) {
if(playWhenReady) {
if (playWhenReady) {
callback.onPlay();
} else {
callback.onPause();

View File

@ -68,7 +68,7 @@ public class CustomTrackSelector extends DefaultTrackSelector {
TextTrackScore trackScore =
new TextTrackScore(
format, params, trackFormatSupport[trackIndex], selectedAudioLanguage);
if(formatHasLanguage(format, preferredTextLanguage)) {
if (formatHasLanguage(format, preferredTextLanguage)) {
selectedGroup = trackGroup;
selectedTrackIndex = trackIndex;
selectedTrackScore = trackScore;
@ -89,4 +89,4 @@ public class CustomTrackSelector extends DefaultTrackSelector {
new TrackSelection.Definition(selectedGroup, selectedTrackIndex),
Assertions.checkNotNull(selectedTrackScore));
}
}
}