]> git.nihav.org Git - nihav-tool.git/commitdiff
use NAPacketiser::attach_stream() where appropriate
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 27 Apr 2024 11:42:12 +0000 (13:42 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 27 Apr 2024 11:42:12 +0000 (13:42 +0200)
src/demux.rs

index 9ea9cbb16a9b03dfb3f809eeb8d2b9bcc7ff54f0..1dc78c5f190fcaefe8303cdd6fc401b45f919bf7 100644 (file)
@@ -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);