]> git.nihav.org Git - nihav-encoder.git/commitdiff
recognize /dev/null as null muxer output by default
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 18 May 2023 16:46:37 +0000 (18:46 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 18 May 2023 16:46:37 +0000 (18:46 +0200)
src/main.rs

index 1e77521d4d6fce2e438dba03ef05d3c2c42122d6..3c39857eec672b6de55ecc4dbe6a1e4167c75c08 100644 (file)
@@ -1110,6 +1110,8 @@ println!("stream {} - {} {}", i, s, info.get_name());
 
     let output_fmt = if let Some(ref str) = transcoder.output_fmt {
             str
+        } else if transcoder.output_name.as_str() == "/dev/null" {
+            "null"
         } else if let Some(str) = detect::detect_format_by_name(transcoder.output_name.as_str()) {
             str
         } else {