|
|
@ -25,12 +25,12 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
|
|
|
|
|
|
|
public bool SupportsVideoCodec(string codec)
|
|
|
|
public bool SupportsVideoCodec(string codec)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ContainerProfile.ContainsContainer(VideoCodec, codec);
|
|
|
|
return Type == DlnaProfileType.Video && ContainerProfile.ContainsContainer(VideoCodec, codec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public bool SupportsAudioCodec(string codec)
|
|
|
|
public bool SupportsAudioCodec(string codec)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ContainerProfile.ContainsContainer(AudioCodec, codec);
|
|
|
|
return (Type == DlnaProfileType.Audio || Type == DlnaProfileType.Video) && ContainerProfile.ContainsContainer(AudioCodec, codec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|