From: Kostya Shishkov Date: Sat, 27 Apr 2024 11:42:12 +0000 (+0200) Subject: use NAPacketiser::attach_stream() where appropriate X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=240018e14cb8ace15aec6cf0dde92b794f26f553;p=nihav-tool.git use NAPacketiser::attach_stream() where appropriate --- diff --git a/src/demux.rs b/src/demux.rs index 9ea9cbb..1dc78c5 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -128,7 +128,8 @@ impl<'a> DemuxerObject<'a> { let mut pkts = Vec::new(); for stream in dmx.get_streams() { if let Some(pcreate) = reg.pkt_reg.find_packetiser(stream.get_info().get_name()) { - let packetiser = (pcreate)(); + let mut packetiser = (pcreate)(); + packetiser.attach_stream(stream); pkts.push(Some(packetiser)); } else { pkts.push(None);