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

index c35167c97ae7bbae7803fe054b833f3b5974a2cc..d050bceb2ff592695575d1220927328547ddaea3 100644 (file)
@@ -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);