aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-01 12:56:36 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-01 12:56:36 -0400
commitf9ec1ce37f3a87fc5845a9a12282a444858fd3f0 (patch)
treea757c492b7ad2442f5dd524665dbff3aacf94833 /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent7f5783988a7194452760a3ff0a06a816c057456f (diff)
fixed subtitle conversions
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 81ab7c4eb..30700ad4c 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -348,9 +348,7 @@ namespace MediaBrowser.Api.Playback
/// <returns>System.String.</returns>
private string GetConvertedAssPath(Video video, MediaStream subtitleStream, long? startTimeTicks, bool performConversion)
{
- var offset = startTimeTicks.HasValue
- ? TimeSpan.FromTicks(startTimeTicks.Value)
- : TimeSpan.FromTicks(0);
+ var offset = TimeSpan.FromTicks(startTimeTicks ?? 0);
var path = Kernel.Instance.FFMpegManager.GetSubtitleCachePath(video, subtitleStream.Index, offset, ".ass");