check SupportsDirectStream

This commit is contained in:
Luke Pulverenti 2015-03-17 00:08:09 -04:00
parent 814c38abfc
commit 84244b8cac

View File

@ -314,7 +314,10 @@ namespace MediaBrowser.Server.Implementations.Session
if (!string.Equals(info.ItemId, info.MediaSourceId) && if (!string.Equals(info.ItemId, info.MediaSourceId) &&
!string.IsNullOrWhiteSpace(info.MediaSourceId)) !string.IsNullOrWhiteSpace(info.MediaSourceId))
{ {
runtimeTicks = _libraryManager.GetItemById(new Guid(info.MediaSourceId)).RunTimeTicks; var runtimeItem = _libraryManager.GetItemById(new Guid(info.MediaSourceId)) ??
_libraryManager.GetItemById(info.ItemId);
runtimeTicks = runtimeItem.RunTimeTicks;
} }
var current = session.NowPlayingItem; var current = session.NowPlayingItem;