From cb1428223f60de96e282b5d814329888ca9a0f1f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 7 Feb 2018 15:24:39 +0100 Subject: [PATCH] Log user request to quit Log at debug level user requests to quit. --- app/src/scrcpy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 19daa67d..1b8b2f7e 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -478,7 +478,9 @@ void event_loop(void) { switch (event.type) { case EVENT_DECODER_STOPPED: SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "Video decoder stopped"); + return; case SDL_QUIT: + SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "User requested to quit"); return; case EVENT_NEW_FRAME: if (!handle_new_frame()) {