From 7f3706ca0439c12bb2d2376fa452674b3bdb1c0c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 21 May 2013 13:44:24 -0400 Subject: [PATCH] fixed static streaming --- MediaBrowser.Api/Playback/BaseStreamingService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 9411a29c5..b2b37a1ac 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -105,7 +105,10 @@ namespace MediaBrowser.Api.Playback protected string GetOutputFilePath(StreamState state) { var folder = ApplicationPaths.EncodedMediaCachePath; - return Path.Combine(folder, GetCommandLineArguments("dummy\\dummy", state, false).GetMD5() + GetOutputFileExtension(state).ToLower()); + + var outputFileExtension = GetOutputFileExtension(state); + + return Path.Combine(folder, GetCommandLineArguments("dummy\\dummy", state, false).GetMD5() + (outputFileExtension ?? string.Empty).ToLower()); } ///