Commit 1e38bef
authored
* warn when video controls could not be applied
`list_ctrls()` returning nothing leaves `vid_control_params` untouched, so the UI values are silently dropped. Only "failed to list controls of device" was logged, which does not mention that consequence.
* fix(v4l2): don't cache an empty control list
list_ctrls() cached its result unconditionally, including the empty dict a failed lookup produces. The cache has no expiry and is only cleared by list_devices(), so a briefly unreachable device kept an empty control list until that ran or motionEye restarted.
1 parent da7e73b commit 1e38bef
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1134 | 1140 | | |
1135 | 1141 | | |
1136 | 1142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
0 commit comments