Display and control your Android device
prevent closing console right after process error in windows
yuchenlin140b1ef6a5f2
diff --git a/app/src/main.c b/app/src/main.cindex 634c7bb4..e1d6782e 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();+ }+#endifreturn res;}