summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2023-07-06 18:31:07 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2023-07-06 18:31:07 +0200
commit1e14f1e2ef1b1eb1994908d7fe839e5e2893b799 (patch)
tree538e3eb30dc2ab95e64d8e1e7561cb28d928cf34
parent2ef3529c3c4445ef99b0c2c1afadcb98803fa517 (diff)
downloadnihav-player-master.tar.gz
videoplayer: do not print missing reference errorHEADmaster
-rw-r--r--videoplayer/src/videodec.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/videoplayer/src/videodec.rs b/videoplayer/src/videodec.rs
index 1d70112..6965ae5 100644
--- a/videoplayer/src/videodec.rs
+++ b/videoplayer/src/videodec.rs
@@ -113,7 +113,9 @@ impl VideoDecoder {
},
(Err(err), id) => {
reord.drop_frame(id);
- println!("frame {} decoding error {:?}", id, err);
+ if err != DecoderError::MissingReference {
+ println!("frame {} decoding error {:?}", id, err);
+ }
},
};
}
@@ -159,7 +161,9 @@ impl VideoDecoder {
},
(Err(err), id) => {
reord.drop_frame(id);
- println!("frame {} decoding error {:?}", id, err);
+ if err != DecoderError::MissingReference {
+ println!("frame {} decoding error {:?}", id, err);
+ }
},
};
}
@@ -171,7 +175,9 @@ impl VideoDecoder {
(Err(DecoderError::NoFrame), _) => {},
(Err(err), id) => {
reord.drop_frame(id);
- println!("frame {} decoding error {:?}", id, err);
+ if err != DecoderError::MissingReference {
+ println!("frame {} decoding error {:?}", id, err);
+ }
},
};
}