Commit 16733fc
committed
fix(dgw): fix adaptive frame skipping during EOF waits in session shadowing
Fixes playback failures in session shadowing where adaptive frame skipping
permanently stalls video streaming after EOF retry waits.
The ratio used for adaptive frame skip decisions (media_time / wall_time)
was corrupted by time spent waiting for the recording file to grow during
EOF retries. A 20-second EOF wait would result in a ratio of ~0.006, far
below the 1.0 threshold, causing all subsequent frames to be decode-only
with no encoded output reaching the player.
The fix changes the ratio to only measure active processing time
(media_time / accumulated_processing_time) instead of total wall time,
excluding idle waits. Additionally, EOF waits now time out after 3 seconds
to limit the maximum stall duration.
Issue: DGW-3411 parent aad097b commit 16733fc
2 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| 197 | + | |
195 | 198 | | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
266 | 271 | | |
| 272 | + | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| |||
371 | 377 | | |
372 | 378 | | |
373 | 379 | | |
374 | | - | |
375 | | - | |
| 380 | + | |
| 381 | + | |
376 | 382 | | |
377 | 383 | | |
378 | | - | |
| 384 | + | |
379 | 385 | | |
380 | 386 | | |
381 | 387 | | |
| |||
0 commit comments