mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
update video player osd
This commit is contained in:
parent
d9b93984f6
commit
838473eb80
@ -792,11 +792,13 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
public bool HasExited;
|
||||
public int? ExitCode;
|
||||
private readonly MediaEncoder _mediaEncoder;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public ProcessWrapper(Process process, MediaEncoder mediaEncoder)
|
||||
public ProcessWrapper(Process process, MediaEncoder mediaEncoder, ILogger logger)
|
||||
{
|
||||
Process = process;
|
||||
this._mediaEncoder = mediaEncoder;
|
||||
_logger = logger;
|
||||
Process.Exited += Process_Exited;
|
||||
}
|
||||
|
||||
@ -806,7 +808,14 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
|
||||
HasExited = true;
|
||||
|
||||
ExitCode = process.ExitCode;
|
||||
try
|
||||
{
|
||||
ExitCode = process.ExitCode;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Error determing process exit code", ex);
|
||||
}
|
||||
|
||||
lock (_mediaEncoder._runningProcesses)
|
||||
{
|
||||
|
@ -772,5 +772,8 @@
|
||||
"ButtonSignInWithConnect": "Sign in with Emby Connect",
|
||||
"HeaderNewServer": "New Server",
|
||||
"MyDevice": "My Device",
|
||||
"ButtonRemote": "Remote"
|
||||
"ButtonRemote": "Remote",
|
||||
"TabInfo": "Info",
|
||||
"TabCast": "Cast",
|
||||
"TabScenes": "Scenes"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user