From 3aa66af9756423241a69aa2bc41c2e76e550c96b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 27 Apr 2024 13:41:55 +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 19b5f24..58eed7f 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -110,7 +110,8 @@ impl<'a> DemuxerObject<'a> { let mut pkts = Vec::new(); for stream in dmx.get_object().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