fixed installer root suffix

This commit is contained in:
LukePulverenti
2013-03-08 21:34:54 -05:00
parent 1c1f09c46f
commit ea1b57a4d8
10 changed files with 105 additions and 919 deletions
@@ -34,14 +34,16 @@ namespace MediaBrowser.Api.Playback.Progressive
return ext;
}
var videoRequest = state.Request as VideoStreamRequest;
// Try to infer based on the desired video codec
if (state.Request.VideoCodec.HasValue)
if (videoRequest != null && videoRequest.VideoCodec.HasValue)
{
var video = state.Item as Video;
if (video != null)
{
switch (state.Request.VideoCodec.Value)
switch (videoRequest.VideoCodec.Value)
{
case VideoCodecs.H264:
return ".ts";