diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-07-06 18:31:07 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-07-06 18:31:07 +0200 |
commit | 1e14f1e2ef1b1eb1994908d7fe839e5e2893b799 (patch) | |
tree | 538e3eb30dc2ab95e64d8e1e7561cb28d928cf34 | |
parent | 2ef3529c3c4445ef99b0c2c1afadcb98803fa517 (diff) | |
download | nihav-player-master.tar.gz |
-rw-r--r-- | videoplayer/src/videodec.rs | 12 |
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); + } }, }; } |