The Free Software Media System - Server Backend & API
Fix .Net 7 compatibility
Shadowghost0834dc58c13b
diff --git a/MediaBrowser.Model/Dlna/MediaOptions.cs b/MediaBrowser.Model/Dlna/MediaOptions.csindex 71ee1db05d..29aecf97fc 100644--- a/MediaBrowser.Model/Dlna/MediaOptions.cs+++ b/MediaBrowser.Model/Dlna/MediaOptions.cs@@ -11,7 +11,7 @@ namespace MediaBrowser.Model.Dlnapublic class MediaOptions{/// <summary>- /// Creates a new instance of the <see cref="MediaOptions"/> class.+ /// Initializes a new instance of the <see cref="MediaOptions"/> class./// </summary>public MediaOptions(){@@ -22,32 +22,32 @@ namespace MediaBrowser.Model.Dlna}/// <summary>- /// Gets or sets a boolean to allow/forbid direct playback.+ /// Gets or sets a value indicating whether direct playback is allowed./// </summary>public bool EnableDirectPlay { get; set; }/// <summary>- /// Gets or sets a boolean to allow/forbid direct streaming.+ /// Gets or sets a value indicating whether direct streaming is allowed./// </summary>public bool EnableDirectStream { get; set; }/// <summary>- /// Gets or sets a boolean to force direct playback.+ /// Gets or sets a value indicating whether direct playback is forced./// </summary>public bool ForceDirectPlay { get; set; }/// <summary>- /// Gets or sets a boolean to force direct streaming.+ /// Gets or sets a value indicating whether direct streaming is forced./// </summary>public bool ForceDirectStream { get; set; }/// <summary>- /// Gets or sets a boolean to allow/forbid audio stream copy.+ /// Gets or sets a value indicating whether audio stream copy is allowed./// </summary>public bool AllowAudioStreamCopy { get; set; }/// <summary>- /// Gets or sets a boolean to allow/forbid video stream copy.+ /// Gets or sets a value indicating whether video stream copy is allowed./// </summary>public bool AllowVideoStreamCopy { get; set; }@@ -64,7 +64,6 @@ namespace MediaBrowser.Model.Dlna/// <summary>/// Gets or sets the device profile./// </summary>-public DeviceProfile Profile { get; set; }/// <summary>diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.csindex bb1e236bea..2f919b0451 100644--- a/MediaBrowser.Model/Dlna/StreamBuilder.cs+++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs@@ -1483,7 +1483,6 @@ namespace MediaBrowser.Model.Dlnareturn false;}-long requestedMaxBitrate = maxBitrate > 0 ? maxBitrate : 1000000;// If we don't know the bitrate, then force a transcode if requested max bitrate is under 40 mbps@@ -1501,7 +1500,7 @@ namespace MediaBrowser.Model.Dlnareturn false;}- private static void ValidateMediaOptions(MediaOptions options, Boolean IsMediaSource)+ private static void ValidateMediaOptions(MediaOptions options, bool isMediaSource){if (options.ItemId.Equals(default)){@@ -1518,7 +1517,7 @@ namespace MediaBrowser.Model.Dlnathrow new ArgumentException("MediaSources is required");}- if (IsMediaSource)+ if (isMediaSource){if (options.AudioStreamIndex.HasValue && string.IsNullOrEmpty(options.MediaSourceId)){