diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2021-02-04 23:28:20 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 23:28:20 +0900 |
| commit | ad203d011bb87020ac939fbd36b48166d58a9736 (patch) | |
| tree | 33ebf72dbe621c08a8b3a87077ee9668d73d0a1f /Emby.Server.Implementations/Library/MediaSourceManager.cs | |
| parent | bfbbee0bc94334cae739811ee5de6606f8e59776 (diff) | |
| parent | a9b497720dcb27b2c8465ab61f7f77e77c75ab04 (diff) | |
Merge pull request #5006 from jellyfin/roundtrip
Use JsonSerializer.SerializeToUtf8Bytes when doing a round trip
Diffstat (limited to 'Emby.Server.Implementations/Library/MediaSourceManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/MediaSourceManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/MediaSourceManager.cs b/Emby.Server.Implementations/Library/MediaSourceManager.cs index 660ec106b..c63eb7017 100644 --- a/Emby.Server.Implementations/Library/MediaSourceManager.cs +++ b/Emby.Server.Implementations/Library/MediaSourceManager.cs @@ -515,7 +515,7 @@ namespace Emby.Server.Implementations.Library } // TODO: @bond Fix - var json = JsonSerializer.Serialize(mediaSource, _jsonOptions); + var json = JsonSerializer.SerializeToUtf8Bytes(mediaSource, _jsonOptions); _logger.LogInformation("Live stream opened: " + json); var clone = JsonSerializer.Deserialize<MediaSourceInfo>(json, _jsonOptions); |
