|
|
@ -61,33 +61,25 @@ namespace MediaBrowser.MediaEncoding.BdInfo
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var stream in playlist.SortedStreams)
|
|
|
|
foreach (var stream in playlist.SortedStreams)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var videoStream = stream as TSVideoStream;
|
|
|
|
if (stream is TSVideoStream videoStream)
|
|
|
|
|
|
|
|
|
|
|
|
if (videoStream != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AddVideoStream(mediaStreams, videoStream);
|
|
|
|
AddVideoStream(mediaStreams, videoStream);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var audioStream = stream as TSAudioStream;
|
|
|
|
if (stream is TSAudioStream audioStream)
|
|
|
|
|
|
|
|
|
|
|
|
if (audioStream != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AddAudioStream(mediaStreams, audioStream);
|
|
|
|
AddAudioStream(mediaStreams, audioStream);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var textStream = stream as TSTextStream;
|
|
|
|
if (stream is TSTextStream textStream)
|
|
|
|
|
|
|
|
|
|
|
|
if (textStream != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AddSubtitleStream(mediaStreams, textStream);
|
|
|
|
AddSubtitleStream(mediaStreams, textStream);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var graphicsStream = stream as TSGraphicsStream;
|
|
|
|
if (stream is TSGraphicsStream graphicsStream)
|
|
|
|
|
|
|
|
|
|
|
|
if (graphicsStream != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
AddSubtitleStream(mediaStreams, graphicsStream);
|
|
|
|
AddSubtitleStream(mediaStreams, graphicsStream);
|
|
|
|
}
|
|
|
|
}
|
|
|
|