Browse Source

Update PlayToController.cs

BaronGreenback 4 years ago
parent
commit
a9864368c4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Emby.Dlna/PlayTo/PlayToController.cs

+ 4 - 1
Emby.Dlna/PlayTo/PlayToController.cs

@@ -886,7 +886,10 @@ namespace Emby.Dlna.PlayTo
                     return null;
                 }
 
-                mediaSource = await _mediaSourceManager.GetMediaSource(Item, MediaSourceId, LiveStreamId, false, cancellationToken).ConfigureAwait(false);
+                if (_mediaSourceManager != null)
+                {
+                    mediaSource = await _mediaSourceManager.GetMediaSource(Item, MediaSourceId, LiveStreamId, false, cancellationToken).ConfigureAwait(false);
+                }
 
                 return mediaSource;
             }