diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-02 01:12:58 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-02 01:12:58 -0500 |
| commit | c63c39ce57dc6a22058da227a11ef1d62f28f627 (patch) | |
| tree | 05c1b24d1cb632d2e807bdc39158ef5430dfd005 /MediaBrowser.Server.Startup.Common/ApplicationHost.cs | |
| parent | c93740461e5cef99deb378e587b75cf74950b94e (diff) | |
sync video transcoding
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/ApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index 8a1721b7e..41f0a2806 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -185,6 +185,7 @@ namespace MediaBrowser.Server.Startup.Common /// </summary> /// <value>The media encoder.</value> private IMediaEncoder MediaEncoder { get; set; } + private ISubtitleEncoder SubtitleEncoder { get; set; } private IConnectManager ConnectManager { get; set; } private ISessionManager SessionManager { get; set; } @@ -560,7 +561,8 @@ namespace MediaBrowser.Server.Startup.Common RegisterSingleInstance<ISessionContext>(new SessionContext(UserManager, authContext, SessionManager)); RegisterSingleInstance<IAuthService>(new AuthService(UserManager, authContext, ServerConfigurationManager, ConnectManager, SessionManager, DeviceManager)); - RegisterSingleInstance<ISubtitleEncoder>(new SubtitleEncoder(LibraryManager, LogManager.GetLogger("SubtitleEncoder"), ApplicationPaths, FileSystemManager, MediaEncoder, JsonSerializer)); + SubtitleEncoder = new SubtitleEncoder(LibraryManager, LogManager.GetLogger("SubtitleEncoder"), ApplicationPaths, FileSystemManager, MediaEncoder, JsonSerializer); + RegisterSingleInstance(SubtitleEncoder); await ConfigureDisplayPreferencesRepositories().ConfigureAwait(false); await ConfigureItemRepositories().ConfigureAwait(false); @@ -602,7 +604,8 @@ namespace MediaBrowser.Server.Startup.Common IsoManager, LibraryManager, ChannelManager, - SessionManager); + SessionManager, + () => SubtitleEncoder); RegisterSingleInstance(MediaEncoder); } |
