Explorar o código

get default profile if needed

Luke Pulverenti %!s(int64=11) %!d(string=hai) anos
pai
achega
ca4c674a4b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 5 - 0
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -1734,6 +1734,11 @@ namespace MediaBrowser.Api.Playback
                 AddTimeSeekResponseHeaders(state, responseHeaders);
             }
 
+            if (profile == null)
+            {
+                profile = DlnaManager.GetDefaultProfile();
+            }
+
             var audioCodec = state.Request.AudioCodec;
 
             if (state.VideoRequest == null)