|
|
@ -288,7 +288,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
|
|
|
|
|
|
|
|
protected string GetH264Encoder(StreamState state)
|
|
|
|
protected string GetH264Encoder(StreamState state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareVideoDecoder, "qsv", StringComparison.OrdinalIgnoreCase))
|
|
|
|
if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// It's currently failing on live tv
|
|
|
|
// It's currently failing on live tv
|
|
|
|
if (state.RunTimeTicks.HasValue)
|
|
|
|
if (state.RunTimeTicks.HasValue)
|
|
|
@ -820,7 +820,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
protected string GetVideoDecoder(StreamState state)
|
|
|
|
protected string GetVideoDecoder(StreamState state)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareVideoDecoder, "qsv", StringComparison.OrdinalIgnoreCase))
|
|
|
|
if (string.Equals(ApiEntryPoint.Instance.GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
|
|
|
|
if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
|
|
|
|
{
|
|
|
|
{
|
|
|
|