mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
fixed audio in hls
This commit is contained in:
parent
a96ec4f169
commit
de755c4b93
2 changed files with 2 additions and 5 deletions
|
@ -650,10 +650,8 @@ namespace MediaBrowser.Api.Playback
|
|||
state.VideoStream = GetMediaStream(media.MediaStreams, videoRequest.VideoStreamIndex, MediaStreamType.Video, true);
|
||||
state.SubtitleStream = GetMediaStream(media.MediaStreams, videoRequest.SubtitleStreamIndex, MediaStreamType.Subtitle, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
state.AudioStream = GetMediaStream(media.MediaStreams, null, MediaStreamType.Audio, true);
|
||||
}
|
||||
|
||||
state.AudioStream = GetMediaStream(media.MediaStreams, null, MediaStreamType.Audio, true);
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
var file = SegmentFilePrefix + request.SegmentId + Path.GetExtension(Request.PathInfo);
|
||||
|
||||
file = Path.Combine(ApplicationPaths.EncodedMediaCachePath, file);
|
||||
Logger.Info(file);
|
||||
|
||||
return ToStaticFileResult(file);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue