From 2a2c780dbf19cdf73d53ff2d2db1c8cf5492551c Mon Sep 17 00:00:00 2001
From: AAA <35992542+TNTcraftHIM@users.noreply.github.com>
Date: Thu, 26 Nov 2026 14:29:00 -0500
Subject: [PATCH] fix(android): separate captured frames from refreshed
presentations
The actual Android worker replay reproduced a static keyframe refresh advancing recv_after beyond a newly arrived capture. Track raw acquisition separately from successful EGL submission, matching the existing Windows/Linux boundary. MediaCodec whole-microsecond output needs at least 12 us to advance a 90 kHz RTP tick. The production-loop replay covers late, sub-tick and previously dropped captures; the exact ARM64 source passes cargo check. Physical MediaCodec output remains unmeasured.
---
.../src/capture/android/encoding.rs | 55 ++++++++++---------
1 file changed, 29 insertions(+), 26 deletions(-)
diff --git a/prototype/channel-native/src/capture/android/encoding.rs b/prototype/channel-native/src/capture/android/encoding.rs
index f3007bff7..44ec838bb 100644
--- a/prototype/channel-native/src/capture/android/encoding.rs
+++ b/prototype/channel-native/src/capture/android/encoding.rs
@@ -238,20 +238,19 @@ impl Codec {
self.codec.set_parameters(params)?;
Ok(())
}
- fn encode(
- &mut self,
- shared: &Shared,
- frames: &Frames,
- raw: &RawFrame,
- nanos: i64,
- force: bool,
- ) -> Result