diff --git a/app/src/main.c b/app/src/main.c index 634c7bb4af..e1d6782ec1 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -319,5 +319,11 @@ int main(int argc, char *argv[]) { avformat_network_deinit(); // ignore failure +#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE) + if (res != 0) { + fprintf(stderr, "Press any key to continue...\n"); + getchar(); + } +#endif return res; }