aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/MediaSourceManager.cs
AgeCommit message (Collapse)Author
2023-11-09Merge branch 'master' into media-typeCody Robibero
2023-10-11Multiple Stream changesBond_009
* Remove useless MemoryStream in DlnaHttpClient * Use HttpContent.ReadFromJsonAsync extension * Call ConfigureAwait for IAsyncDisposable * Use HttpContent.CopyToAsync where possible
2023-10-10Convert string MediaType to enum MediaTypeCody Robibero
2023-04-06Simplify linq expressions (use All)Stepan Goremykin
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-12-05Replace != null with is not nullBond_009
2022-12-05Replace == null with is nullBond_009
2022-10-06Use ArgumentNullException.ThrowIfNull helper methodBond_009
Did a simple search/replace on the whole repo (except the RSSDP project) This reduces LOC and should improve performance (methods containing a throw statement don't get inlined) ``` if \((\w+) == null\) \s+\{ \s+throw new ArgumentNullException\((.*)\); \s+\} ``` ``` ArgumentNullException.ThrowIfNull($1); ```
2022-05-20Merge pull request #7529 from Shadowghost/strm-ffprobe-external-fixCody Robibero
(cherry picked from commit 60affd096595d68728506149d0ffce6e84b6b015) Signed-off-by: crobibero <cody@robibe.ro>
2022-03-17Fix supportsTranscoding not reflecting user permissions sometimesjakobkukla
2022-02-21Optimize Guid comparisonsBond_009
* Use Guid.Equals(Guid) instead of the == override * Ban the usage of Guid.Equals(Object) to prevent accidental boxing * Compare to default(Guid) instead of Guid.Empty
2022-02-14Fix some warningsBond_009
2021-12-27Remove more warningsCody Robibero
2021-11-07Add some docs and testsBond_009
2021-10-03Fix warnings in LibraryPatrick Barron
2021-09-10Replace GetDirectStreamProviderByUniqueId with GetLiveStreamInfoByUniqueIdcvium
2021-09-10Don't throw when livestream file isn't foundcvium
2021-09-10Kill ProgressiveFileCopier and seek to end for ongoing livetvcvium
2021-09-07Fix it for real(tm) this timeBond-009
2021-09-07Fix log messageBond-009
2021-09-02Use async FileStreams where it makes senseBond_009
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-24Remove some unnecessary allocationscvium
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-04-30Reduce some allocations with the magic of spans etc.cvium
2021-04-19Respect user settings for transcode and remuxcvium
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-01-12Use JsonSerializer.SerializeToUtf8Bytes when doing a round tripBond_009
This test uses a very small object (CountryInfo), using a bigger object would increase the difference in allocated memory. ``` BenchmarkDotNet=v0.12.1, OS=fedora 32 Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=5.0.100 [Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | |---------------- |-----------:|---------:|---------:|-------:|------:|------:|----------:| | RoundTripBytes | 932.0 ns | 5.09 ns | 4.25 ns | 0.1173 | - | - | 368 B | | RoundTripString | 1,114.8 ns | 22.19 ns | 23.74 ns | 0.1469 | - | - | 464 B | ```
2020-12-24Put json serializer options in private fieldDavid
2020-12-23Use streams instead of stringsDavid
2020-12-23Remove custom Json serializer from Emby.Server.ImplementationsDavid
2020-11-14Use string.Split(char) where possible instead of string.Split(char[])Bond_009
2020-09-23Don't take a lock if there's no intention to manipulate the list of open ↵Ryan Petris
streams. Instead, use a ConcurrentDictionary so that, in those situations, thread-safe access to the dictionary is ensured.
2020-07-24Fix warningsBond_009
2020-07-20Fix warningsBond_009
2020-06-16fix SA1513/SA1516telans
2020-06-15fix SA1508telans
2020-06-15fix SA1005telans
2020-06-15fix SA1510telans
2020-06-13Merge branch 'master' into userdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/Library/UserManager.cs # Jellyfin.Data/Jellyfin.Data.csproj
2020-06-05Use typed logger where possiblecrobibero
2020-06-04Merge branch 'master' into userdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs # Emby.Server.Implementations/Library/UserManager.cs # Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs # Emby.Server.Implementations/Sorting/IsPlayedComparer.cs # Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs # Emby.Server.Implementations/TV/TVSeriesManager.cs # Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs
2020-05-27Merge branch 'master' into nullable3Bond_009
2020-05-20Remove redundant qualifiersPatrick Barron
2020-05-12Initial migration codePatrick Barron
2020-04-05Enable nullabe reference types for MediaBrowser.ModelBond_009
2020-04-04Register and construct IMediaSourceManager correctlyMark Monteiro
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2020-01-13Merge pull request #2096 from Bond-009/embytvdkanada
Clean up Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
2020-01-10Merge branch 'master' into warn12Bond_009