]> git.nihav.org Git - nihav-player.git/commitdiff
sndplay: use more compact output format
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:50:33 +0000 (18:50 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:50:46 +0000 (18:50 +0100)
sndplay/src/main.rs

index bd569518d05e4c90b1ce3ef7d64a5ffc80831594..a78cbadbb83bc63eb587d998ec7b62d7d335a37b 100644 (file)
@@ -266,7 +266,7 @@ impl Player {
         } else {
             br = Box::new(fr);
         }
-        let dmx = DemuxerObject::create(br, &self.full_reg, name, None, is_raw, &[], true);
+        let dmx = DemuxerObject::create(br, &self.full_reg, name, None, is_raw, &[], false);
         if dmx.is_none() {
             println!("Demuxer creation failed!");
             return;
@@ -318,7 +318,7 @@ impl Player {
             } else { 44100 };
         let ch    = ainfo.channels;
 
-        println!("Playing {} [{}Hz {}ch]", name, arate, ch);
+        println!("Playing {} - {dmx} [{}Hz {}ch]", name, arate, ch);
         let ret = AudioDevice::open(arate, ch.min(2));
         if ret.is_none() {
             println!("cannot open output");