mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2024-11-27 08:00:28 +00:00
Fix crash when item has no media sources
This commit is contained in:
parent
eacbfe7005
commit
08cb004b99
@ -520,8 +520,9 @@ public class PlaybackController implements PlaybackControllerNotifiable {
|
||||
internalOptions.setEnableDirectStream(false);
|
||||
internalOptions.setMaxAudioChannels(Utils.downMixAudio(mFragment.getContext()) ? 2 : null); //have to downmix at server
|
||||
internalOptions.setSubtitleStreamIndex(forcedSubtitleIndex);
|
||||
if (!isLiveTv) {
|
||||
internalOptions.setMediaSourceId(getCurrentMediaSource().getId());
|
||||
MediaSourceInfo currentMediaSource = getCurrentMediaSource();
|
||||
if (!isLiveTv && currentMediaSource != null) {
|
||||
internalOptions.setMediaSourceId(currentMediaSource.getId());
|
||||
}
|
||||
DeviceProfile internalProfile = new ExoPlayerProfile(
|
||||
mFragment.getContext(),
|
||||
|
Loading…
Reference in New Issue
Block a user