From 240018e14cb8ace15aec6cf0dde92b794f26f553 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 27 Apr 2024 13:42:12 +0200 Subject: [PATCH] use NAPacketiser::attach_stream() where appropriate --- src/demux.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5