aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-14 02:28:20 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-14 02:28:20 -0500
commit43c69713835afee3d27ced041e5f96ec36fa0ce3 (patch)
tree207d9069b93b20f72e1eafd0fbf9d24cd6d9e0e1 /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent68d2add6d253016e756facfd1e99246ef0d9e833 (diff)
update isavc condition
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 690505869..3718edba4 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -1759,6 +1759,13 @@ namespace MediaBrowser.Api.Playback
videoRequest.EnableSplittingOnNonKeyFrames = string.Equals("true", val, StringComparison.OrdinalIgnoreCase);
}
}
+ else if (i == 30)
+ {
+ if (videoRequest != null)
+ {
+ videoRequest.RequireAvc = string.Equals("true", val, StringComparison.OrdinalIgnoreCase);
+ }
+ }
}
}
@@ -2115,7 +2122,7 @@ namespace MediaBrowser.Api.Playback
if (string.Equals("h264", videoStream.Codec, StringComparison.OrdinalIgnoreCase))
{
- if (videoStream.IsAVC.HasValue && !videoStream.IsAVC.Value)
+ if (videoStream.IsAVC.HasValue && !videoStream.IsAVC.Value && request.RequireAvc)
{
Logger.Debug("Cannot stream copy video. Stream is marked as not AVC");
return false;