Commit d8e9707
committed
framesource: allow 1 buffer on memory-constrained devices
The hard floor of 2 buffers overrode the RAM-based memory cap,
causing T31L (64MB) devices to allocate 2 buffers per channel
even when MemTotal (~34MB after ISP/rmem) could only afford 1.
This starved the system and prevented streams from starting.
Lower std::max floor from 2 to 1 so the 15%-of-RAM cap can
take effect on low-memory devices. Higher-RAM devices are
unaffected since their mem_cap remains above 2.1 parent a37ad5d commit d8e9707
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
0 commit comments