From: Kostya Shishkov Date: Sat, 27 Apr 2024 11:45:28 +0000 (+0200) Subject: use NAPacketiser::attach_stream() where appropriate X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=c84ea16daef963fe73d4b2e69b20b68524563ae0;p=nihav-player.git use NAPacketiser::attach_stream() where appropriate --- 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);