mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-28 05:10:30 +00:00
Properly handle stream addition and removal for strm use cases
This commit is contained in:
parent
3229ba4918
commit
21ce0e58c6
3 changed files with 19 additions and 8 deletions
|
|
@ -2228,13 +2228,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
}
|
||||
|
||||
var args = string.Empty;
|
||||
var numberOfExternalStreams = state.MediaSource.MediaStreams.Where(stream => stream.IsExternal == true).Count();
|
||||
|
||||
if (state.VideoStream != null)
|
||||
{
|
||||
args += string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"-map 0:{0}",
|
||||
state.VideoStream.Index);
|
||||
state.VideoStream.Index - numberOfExternalStreams);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue