Bond_009 4 éve
szülő
commit
401bafbfd0
1 módosított fájl, 2 hozzáadás és 24 törlés
  1. 2 24
      MediaBrowser.Model/Dlna/StreamInfo.cs

+ 2 - 24
MediaBrowser.Model/Dlna/StreamInfo.cs

@@ -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
-        {
-            get
-            {
-                if (MediaSource != null)
-                {
-                    return MediaSource.GetDefaultAudioStream(AudioStreamIndex);
-                }
-
-                return null;
-            }
-        }
+        public MediaStream TargetAudioStream => MediaSource?.GetDefaultAudioStream(AudioStreamIndex);
 
 
         /// <summary>
         /// <summary>
         /// Gets the video stream that will be used.
         /// Gets the video stream that will be used.
         /// </summary>
         /// </summary>
-        public MediaStream TargetVideoStream
-        {
-            get
-            {
-                if (MediaSource != null)
-                {
-                    return MediaSource.VideoStream;
-                }
-
-                return null;
-            }
-        }
+        public MediaStream TargetVideoStream => MediaSource?.VideoStream;
 
 
         /// <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.