Refact new code (minor)

This commit is contained in:
Nikolaj Olsson 2020-05-09 19:45:50 +02:00
parent d6de9c5d29
commit 3fde4143da

View File

@ -754,17 +754,14 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.TransportStream
public static Dictionary<int, Paragraph> ProcessTelxPacketPendingLeftovers(TeletextRunSettings teletextRunSettings, int pageNumberDec)
{
// Now we have the beginning of page transmission; if there is page_buffer pending, process it
if (_pageBuffer.Tainted)
{
// this time we do not subtract any frames, there will be no more frames
_pageBuffer.HideTimestamp = teletextRunSettings.GetLastTimestamp(pageNumberDec);
ProcessPage(_pageBuffer, teletextRunSettings, pageNumberDec);
if (teletextRunSettings.PageNumberAndParagraph.Count > 0)
{
return teletextRunSettings.PageNumberAndParagraph;
}
return teletextRunSettings.PageNumberAndParagraph;
}
return new Dictionary<int, Paragraph>();
}
}