forge
Explore
Log in

Don't you dare go Hollow

B4: flush steers every encoded frame before returning the first steer error, no ? mid-loop

Browse files at this commit

98458ad092550ee3cf8cf5a03e76c15597e18790Ahmet Kaan GümüşParent: 392204e
crates/ec-hw/src/hw.rsmodified+3 -1
@@ -772,9 +772,11 @@ impl HwEncoder {
772 self.vk_frame(coded, timestamp)772 self.vk_frame(coded, timestamp)
773 })773 })
774 .collect();774 .collect();
775+ let mut steered = Ok(());
775 for frame in &out {776 for frame in &out {
776- self.steer(frame.data.len())?;777+ steered = steered.and(self.steer(frame.data.len()));
777 }778 }
779+ steered?;
778 Ok(out)780 Ok(out)
779 }781 }
780 #[cfg(target_os = "linux")]782 #[cfg(target_os = "linux")]