mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Refact new code (minor)
This commit is contained in:
parent
d6de9c5d29
commit
3fde4143da
@ -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>();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user