From 86dbaa8ed53c5b76414d1a577f680d2a65dd2c89 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Sat, 20 Mar 2021 12:11:49 -0700 Subject: [PATCH] true/false don't need to be explicit Co-authored-by: Johannesd3 <51954457+Johannesd3@users.noreply.github.com> --- audio/src/passthrough_decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/src/passthrough_decoder.rs b/audio/src/passthrough_decoder.rs index 6fab78ec..082f6915 100644 --- a/audio/src/passthrough_decoder.rs +++ b/audio/src/passthrough_decoder.rs @@ -73,7 +73,7 @@ impl AudioDecoder for PassthroughDecoder { info!("Seeking to {}", ms); // add an eos to previous stream if missing - if self.bos == true && self.eos == false { + if self.bos && !self.eos { match self.rdr.read_packet() { Ok(Some(pck)) => { let absgp_page = pck.absgp_page() - self.ofsgp_page;