update video player osd

pull/702/head
Luke Pulverenti 10 years ago
parent d9b93984f6
commit 838473eb80

@ -792,11 +792,13 @@ namespace MediaBrowser.MediaEncoding.Encoder
public bool HasExited; public bool HasExited;
public int? ExitCode; public int? ExitCode;
private readonly MediaEncoder _mediaEncoder; private readonly MediaEncoder _mediaEncoder;
private readonly ILogger _logger;
public ProcessWrapper(Process process, MediaEncoder mediaEncoder) public ProcessWrapper(Process process, MediaEncoder mediaEncoder, ILogger logger)
{ {
Process = process; Process = process;
this._mediaEncoder = mediaEncoder; this._mediaEncoder = mediaEncoder;
_logger = logger;
Process.Exited += Process_Exited; Process.Exited += Process_Exited;
} }
@ -806,7 +808,14 @@ namespace MediaBrowser.MediaEncoding.Encoder
HasExited = true; HasExited = true;
ExitCode = process.ExitCode; try
{
ExitCode = process.ExitCode;
}
catch (Exception ex)
{
_logger.ErrorException("Error determing process exit code", ex);
}
lock (_mediaEncoder._runningProcesses) lock (_mediaEncoder._runningProcesses)
{ {

@ -772,5 +772,8 @@
"ButtonSignInWithConnect": "Sign in with Emby Connect", "ButtonSignInWithConnect": "Sign in with Emby Connect",
"HeaderNewServer": "New Server", "HeaderNewServer": "New Server",
"MyDevice": "My Device", "MyDevice": "My Device",
"ButtonRemote": "Remote" "ButtonRemote": "Remote",
"TabInfo": "Info",
"TabCast": "Cast",
"TabScenes": "Scenes"
} }

Loading…
Cancel
Save