From 173ed019d1870337e0011fd32519ca8e46024b18 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 30 Apr 2013 15:13:06 -0400 Subject: [PATCH] stream audio statically when possible --- MediaBrowser.Server.Implementations/Library/UserManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Library/UserManager.cs b/MediaBrowser.Server.Implementations/Library/UserManager.cs index e6ffe075d..99485f726 100644 --- a/MediaBrowser.Server.Implementations/Library/UserManager.cs +++ b/MediaBrowser.Server.Implementations/Library/UserManager.cs @@ -4,6 +4,7 @@ using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Entities.Audio; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Persistence; using MediaBrowser.Model.Connectivity; @@ -723,6 +724,11 @@ namespace MediaBrowser.Server.Implementations.Library } } + if (item is Audio) + { + data.PlaybackPositionTicks = 0; + } + data.PlaybackPositionTicks = positionTicks; if (incrementPlayCount)