qemu-usb/webcam: reset delay packet state

on feature reset initiated by guest

Issue #4078
This commit is contained in:
Alexander Boettcher 2021-07-12 16:36:09 +02:00 committed by Christian Helmuth
parent b38ec9f238
commit 908d581a8c

View File

@ -624,6 +624,7 @@ static void usb_webcam_handle_control(USBDevice * const dev,
state->delayed_packet = 0; state->delayed_packet = 0;
if (state->capture) { if (state->capture) {
state->capture = false; state->capture = false;
state->delay_packet = false;
usb_webcam_capture_state_changed(state->capture); usb_webcam_capture_state_changed(state->capture);
} }
} }