Commit 46848b3
committed
fix: bound AACDecoderStream pendingChunks, optimize _tightBuffer, and
fix DASH stuck loops
Cap AACDecoderStream pendingChunks at 200, drop oldest when full to
prevent unbounded growth
Clear pendingChunks on destroy to release held buffers and callbacks
Optimize _tightBuffer to skip Buffer.from() when buffer is already tight
Clean up audioStream data listener on close/end to prevent leak during
reconnects
DASHHandler: increase prefetch from 1 to 4 and cap segment pace at 5s to
prevent stuck recovery loops1 parent 063560f commit 46848b3
3 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
341 | 348 | | |
342 | 349 | | |
343 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| |||
1270 | 1273 | | |
1271 | 1274 | | |
1272 | 1275 | | |
| 1276 | + | |
1273 | 1277 | | |
1274 | 1278 | | |
1275 | 1279 | | |
| |||
1300 | 1304 | | |
1301 | 1305 | | |
1302 | 1306 | | |
| 1307 | + | |
1303 | 1308 | | |
1304 | 1309 | | |
1305 | 1310 | | |
| |||
1429 | 1434 | | |
1430 | 1435 | | |
1431 | 1436 | | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
1432 | 1440 | | |
1433 | 1441 | | |
1434 | 1442 | | |
| |||
0 commit comments