mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 13:58:29 +01:00
Address comments
This commit is contained in:
@@ -116,34 +116,12 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the audio stream that will be used.
|
/// Gets the audio stream that will be used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MediaStream TargetAudioStream
|
public MediaStream TargetAudioStream => MediaSource?.GetDefaultAudioStream(AudioStreamIndex);
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (MediaSource != null)
|
|
||||||
{
|
|
||||||
return MediaSource.GetDefaultAudioStream(AudioStreamIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the video stream that will be used.
|
/// Gets the video stream that will be used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MediaStream TargetVideoStream
|
public MediaStream TargetVideoStream => MediaSource?.VideoStream;
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (MediaSource != null)
|
|
||||||
{
|
|
||||||
return MediaSource.VideoStream;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the audio sample rate that will be in the output stream.
|
/// Gets the audio sample rate that will be in the output stream.
|
||||||
|
|||||||
Reference in New Issue
Block a user