stream audio statically when possible

This commit is contained in:
Luke Pulverenti 2013-04-30 15:13:06 -04:00
parent 366beca6ff
commit 173ed019d1

View File

@ -4,6 +4,7 @@ using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Dto;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Persistence; using MediaBrowser.Controller.Persistence;
using MediaBrowser.Model.Connectivity; using MediaBrowser.Model.Connectivity;
@ -723,6 +724,11 @@ namespace MediaBrowser.Server.Implementations.Library
} }
} }
if (item is Audio)
{
data.PlaybackPositionTicks = 0;
}
data.PlaybackPositionTicks = positionTicks; data.PlaybackPositionTicks = positionTicks;
if (incrementPlayCount) if (incrementPlayCount)