remove unused video condition params
This commit is contained in:
parent
2f57a96568
commit
213182dd97
|
@ -2033,8 +2033,6 @@ namespace MediaBrowser.Api.Playback
|
|||
profile.GetVideoMediaProfile(state.OutputContainer,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
state.OutputAudioBitrate,
|
||||
state.OutputAudioChannels,
|
||||
state.OutputWidth,
|
||||
state.OutputHeight,
|
||||
state.TargetVideoBitDepth,
|
||||
|
@ -2121,8 +2119,6 @@ namespace MediaBrowser.Api.Playback
|
|||
state.OutputHeight,
|
||||
state.TargetVideoBitDepth,
|
||||
state.OutputVideoBitrate,
|
||||
state.OutputAudioBitrate,
|
||||
state.OutputAudioChannels,
|
||||
state.TargetTimestamp,
|
||||
isStaticallyStreamed,
|
||||
state.RunTimeTicks,
|
||||
|
|
|
@ -100,6 +100,7 @@ namespace MediaBrowser.Api.Subtitles
|
|||
}
|
||||
|
||||
[Route("/Videos/{Id}/{MediaSourceId}/Subtitles/{Index}/subtitles.m3u8", "GET", Summary = "Gets an HLS subtitle playlist.")]
|
||||
[Authenticated]
|
||||
public class GetSubtitlePlaylist
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -149,8 +149,6 @@ namespace MediaBrowser.Dlna.Didl
|
|||
targetHeight,
|
||||
streamInfo.TargetVideoBitDepth,
|
||||
streamInfo.TargetVideoBitrate,
|
||||
streamInfo.TargetAudioChannels,
|
||||
streamInfo.TargetAudioBitrate,
|
||||
streamInfo.TargetTimestamp,
|
||||
streamInfo.IsDirectStream,
|
||||
streamInfo.RunTimeTicks,
|
||||
|
@ -276,11 +274,9 @@ namespace MediaBrowser.Dlna.Didl
|
|||
streamInfo.AudioCodec,
|
||||
streamInfo.VideoCodec,
|
||||
streamInfo.TargetAudioBitrate,
|
||||
targetChannels,
|
||||
targetWidth,
|
||||
targetHeight,
|
||||
streamInfo.TargetVideoBitDepth,
|
||||
streamInfo.TargetVideoBitrate,
|
||||
streamInfo.TargetVideoProfile,
|
||||
streamInfo.TargetVideoLevel,
|
||||
streamInfo.TargetFramerate,
|
||||
|
|
|
@ -509,8 +509,6 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||
streamInfo.TargetHeight,
|
||||
streamInfo.TargetVideoBitDepth,
|
||||
streamInfo.TargetVideoBitrate,
|
||||
streamInfo.TargetAudioChannels,
|
||||
streamInfo.TargetAudioBitrate,
|
||||
streamInfo.TargetTimestamp,
|
||||
streamInfo.IsDirectStream,
|
||||
streamInfo.RunTimeTicks,
|
||||
|
|
|
@ -716,8 +716,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
profile.GetVideoMediaProfile(outputContainer,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
state.OutputAudioBitrate,
|
||||
state.OutputAudioChannels,
|
||||
state.OutputWidth,
|
||||
state.OutputHeight,
|
||||
state.TargetVideoBitDepth,
|
||||
|
|
|
@ -7,8 +7,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
public class ConditionProcessor
|
||||
{
|
||||
public bool IsVideoConditionSatisfied(ProfileCondition condition,
|
||||
int? audioBitrate,
|
||||
int? audioChannels,
|
||||
int? width,
|
||||
int? height,
|
||||
int? bitDepth,
|
||||
|
@ -44,10 +42,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
return IsConditionSatisfied(condition, videoProfile);
|
||||
case ProfileConditionValue.PacketLength:
|
||||
return IsConditionSatisfied(condition, packetLength);
|
||||
case ProfileConditionValue.AudioBitrate:
|
||||
return IsConditionSatisfied(condition, audioBitrate);
|
||||
case ProfileConditionValue.AudioChannels:
|
||||
return IsConditionSatisfied(condition, audioChannels);
|
||||
case ProfileConditionValue.VideoBitDepth:
|
||||
return IsConditionSatisfied(condition, bitDepth);
|
||||
case ProfileConditionValue.VideoBitrate:
|
||||
|
|
|
@ -105,8 +105,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
int? height,
|
||||
int? bitDepth,
|
||||
int? videoBitrate,
|
||||
int? audioChannels,
|
||||
int? audioBitrate,
|
||||
TransportStreamTimestamp timestamp,
|
||||
bool isDirectStream,
|
||||
long? runtimeTicks,
|
||||
|
@ -147,8 +145,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
ResponseProfile mediaProfile = _profile.GetVideoMediaProfile(container,
|
||||
audioCodec,
|
||||
videoCodec,
|
||||
audioBitrate,
|
||||
audioChannels,
|
||||
width,
|
||||
height,
|
||||
bitDepth,
|
||||
|
|
|
@ -272,8 +272,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
public ResponseProfile GetVideoMediaProfile(string container,
|
||||
string audioCodec,
|
||||
string videoCodec,
|
||||
int? audioBitrate,
|
||||
int? audioChannels,
|
||||
int? width,
|
||||
int? height,
|
||||
int? bitDepth,
|
||||
|
@ -321,7 +319,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
var anyOff = false;
|
||||
foreach (ProfileCondition c in i.Conditions)
|
||||
{
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(c, audioBitrate, audioChannels, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(c, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
{
|
||||
anyOff = true;
|
||||
break;
|
||||
|
|
|
@ -578,7 +578,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
// Check container conditions
|
||||
foreach (ProfileCondition i in conditions)
|
||||
{
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, audioBitrate, audioChannels, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
{
|
||||
LogConditionFailure(profile, "VideoContainerProfile", i, mediaSource);
|
||||
|
||||
|
@ -611,7 +611,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
|
||||
foreach (ProfileCondition i in conditions)
|
||||
{
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, audioBitrate, audioChannels, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
if (!conditionProcessor.IsVideoConditionSatisfied(i, width, height, bitDepth, videoBitrate, videoProfile, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isCabac, refFrames, numVideoStreams, numAudioStreams))
|
||||
{
|
||||
LogConditionFailure(profile, "VideoCodecProfile", i, mediaSource);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user