summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+ }
},
};
}