]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: print information about input file in more compact form
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:53:23 +0000 (18:53 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:53:23 +0000 (18:53 +0100)
videoplayer/src/main.rs

index 061b802a772ed01472714ab27e8b5ec634b11a22..ae866075e70d54e783f635baacf2ce9ce8e98122 100644 (file)
@@ -737,7 +737,7 @@ impl Player {
                 return window;
             };
         let br = Box::new(FileReader::new_read(file));
-        let mut dmx = DemuxerObject::create(br, &self.full_reg, name, None, false, &[], !self.quiet);
+        let mut dmx = DemuxerObject::create(br, &self.full_reg, name, None, false, &[], false);
         if dmx.is_none() {
             println!("error creating demuxer");
             return window;
@@ -761,8 +761,12 @@ impl Player {
         let mut audio_dec: Option<DecoderStuff> = None;
 
         let duration = dmx.get_duration();
-        if duration != 0 && !self.quiet {
-            println!(" total duration {}", format_time(duration));
+        if !self.quiet {
+            print!(" {dmx}");
+            if duration != 0 {
+                print!(" total duration {}", format_time(duration));
+            }
+            println!();
         }
         self.has_video = false;
         self.has_audio = false;