Fix preview not working after switching windows

This commit is contained in:
Kristian Vos
2024-09-30 14:38:08 +02:00
parent 2a328e4f2d
commit 98ae16848c

View File

@@ -375,6 +375,7 @@ on_frame(MPBuffer buffer, void *_data)
// an image, in which case the flash window may be active instead of this
// window
if (!check_window_active() && state_io.captures_remaining == 0) {
mp_io_pipeline_release_buffer(buffer.index);
return;
}