support configurable transcoding temporary path

This commit is contained in:
Luke Pulverenti
2014-01-11 13:58:50 -05:00
parent ef8b02d285
commit 7f57ef0689
9 changed files with 51 additions and 17 deletions

View File

@@ -200,15 +200,16 @@ namespace MediaBrowser.Server.Implementations
}
}
/// <summary>
/// Gets the FF MPEG stream cache path.
/// </summary>
/// <value>The FF MPEG stream cache path.</value>
public string EncodedMediaCachePath
private string _transcodingTempPath;
public string TranscodingTempPath
{
get
{
return Path.Combine(CachePath, "encoded-media");
return _transcodingTempPath ?? (_transcodingTempPath = Path.Combine(ProgramDataPath, "transcoding-temp"));
}
set
{
_transcodingTempPath = value;
}
}