mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-13 11:10:24 +01:00
update metadata editor
This commit is contained in:
@@ -839,7 +839,7 @@ namespace MediaBrowser.Api.Playback
|
||||
}
|
||||
|
||||
// leave blank so ffmpeg will decide
|
||||
return string.Empty;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -849,7 +849,7 @@ namespace MediaBrowser.Api.Playback
|
||||
/// <returns>System.String.</returns>
|
||||
protected string GetInputArgument(StreamState state)
|
||||
{
|
||||
var arg = string.Format("{1}-i {0}", GetInputPathArgument(state), GetVideoDecoder(state));
|
||||
var arg = string.Format("-i {0}", GetInputPathArgument(state));
|
||||
|
||||
if (state.SubtitleStream != null)
|
||||
{
|
||||
@@ -1060,6 +1060,7 @@ namespace MediaBrowser.Api.Playback
|
||||
var bytes = Encoding.UTF8.GetBytes(Environment.NewLine + line);
|
||||
|
||||
await target.WriteAsync(bytes, 0, bytes.Length).ConfigureAwait(false);
|
||||
await target.FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2191,6 +2192,12 @@ namespace MediaBrowser.Api.Playback
|
||||
inputModifier += " -re";
|
||||
}
|
||||
|
||||
var videoDecoder = GetVideoDecoder(state);
|
||||
if (!string.IsNullOrWhiteSpace(videoDecoder))
|
||||
{
|
||||
inputModifier += " " + videoDecoder;
|
||||
}
|
||||
|
||||
return inputModifier;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user