From c84ea16daef963fe73d4b2e69b20b68524563ae0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 27 Apr 2024 13:45:28 +0200 Subject: [PATCH] use NAPacketiser::attach_stream() where appropriate --- sndplay/src/demux.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sndplay/src/demux.rs b/sndplay/src/demux.rs index c35167c..d050bce 100644 --- a/sndplay/src/demux.rs +++ b/sndplay/src/demux.rs @@ -97,7 +97,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