mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Refact new code (minor)
This commit is contained in:
parent
3fde4143da
commit
a148dea8ab
@ -174,11 +174,11 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.TransportStream
|
||||
foreach (var pes in teletextPesList[packetId])
|
||||
{
|
||||
var textDictionary = pes.GetTeletext(teletextRunSettings, page, pageBcd);
|
||||
AddToTeletextDictionary(textDictionary, page, packetId);
|
||||
AddToTeletextDictionary(textDictionary, packetId);
|
||||
}
|
||||
|
||||
var lastTextDictionary = Teletext.ProcessTelxPacketPendingLeftovers(teletextRunSettings, page);
|
||||
AddToTeletextDictionary(lastTextDictionary, page, packetId);
|
||||
AddToTeletextDictionary(lastTextDictionary, packetId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.TransportStream
|
||||
SubtitlePacketIds.Sort();
|
||||
}
|
||||
|
||||
private void AddToTeletextDictionary(Dictionary<int, Paragraph> textDictionary, int page, int packetId)
|
||||
private void AddToTeletextDictionary(Dictionary<int, Paragraph> textDictionary, int packetId)
|
||||
{
|
||||
foreach (var dic in textDictionary)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user