fixed audio in hls

This commit is contained in:
LukePulverenti 2013-03-10 23:44:22 -04:00
parent a96ec4f169
commit de755c4b93
2 changed files with 2 additions and 5 deletions

View File

@ -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;
}

View File

@ -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);
}