summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 954faec..3223cab 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1998,6 +1998,9 @@ static void mpeg_thread(void)
/* Tell the USB thread that we are safe */
DEBUGF("mpeg_thread got SYS_USB_CONNECTED\n");
usb_acknowledge(SYS_USB_CONNECTED_ACK);
+
+ /* Wait until the USB cable is extracted again */
+ usb_wait_for_disconnect(&mpeg_queue);
break;
}
}