]> git.nihav.org Git - nihav-player.git/commitdiff
videoplayer: do not complain about seek errors in quiet mode
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 16 Jun 2026 04:53:47 +0000 (06:53 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 16 Jun 2026 04:53:47 +0000 (06:53 +0200)
videoplayer/src/main.rs

index 9f2255d31b843ff58826c0a1a73eb64a26cc6908..da6878f89b8d16a1e8849938d0691db6edfb44e9 100644 (file)
@@ -525,7 +525,9 @@ impl Player {
 
         let ret = dmx.seek(NATimePoint::Milliseconds(seektime));
         if ret.is_err() {
-            println!(" seek error");
+            if !self.quiet {
+                println!(" seek error");
+            }
             return Ok(()); //TODO: not ignore some of seek errors?
         }