]> git.nihav.org Git - nihav-encoder.git/commitdiff
improve printing input file information
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:59:14 +0000 (18:59 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 4 Feb 2026 17:59:14 +0000 (18:59 +0100)
src/transcoder.rs

index 00f81d9d823d61c7dba5550c79ac68ef3269bb4c..e1f7948ad0a9a31c6123d16b0801111f326318a7 100644 (file)
@@ -1129,9 +1129,10 @@ println!("encoder {} is not supported by output (expected {})", istr.id, istr.ge
                     demuxers.push((dmx, false))
                 },
                 (Some(name), _) => {
-                    println!("Input {i}: {name}");
+                    print!("Input {i}: {name}");
                     let res = File::open(name);
                     if res.is_err() {
+                        println!();
                         println!("error opening input");
                         return false;
                     }
@@ -1152,11 +1153,13 @@ println!("encoder {} is not supported by output (expected {})", istr.id, istr.ge
                         };
 
                     let fformat = if let Some(ref fname) = ifmt { Some(fname.as_str()) } else { None };
-                    let mut dmx = DemuxerObject::create(sb, full_reg, name, fformat, is_raw, &[], print_info);
+                    let mut dmx = DemuxerObject::create(sb, full_reg, name, fformat, is_raw, &[], false);
                     if dmx.is_none() {
-                        println!("cannot find demuxer for '{}'", name);
+                        println!();
+                        println!("cannot create demuxer");
                         return false;
                     }
+                    println!(" type {dmx}");
                     parse_and_apply_options!(dmx, &self.demux_opts[i], "input");
                     if print_info {
                         for i in 0..dmx.get_num_streams() {