mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-13 16:12:23 +00:00
Properly handle stream addition and removal for strm use cases
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user