using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using skyscraper5.Dvb.Psi.Model;
using skyscraper5.Eacem.Descriptors;
using skyscraper5.Mpeg2;
using skyscraper5.Skyscraper.Plugins;

namespace skyscraper5.PrivateDataSpecifiers.Eacem
{
	internal class NitHook : DescriptorPluginNitHandler
	{
		public void HandleNit(NitTransportStream output, TsDescriptor unpacked)
		{
			EacemLogicalChannelDescriptor elcd = (EacemLogicalChannelDescriptor)unpacked;
			output.LogicalChannels.AddRange(elcd.LogicalChannels);
		}
	}
}
