Merge pull request #261 from npes87184/dev
prevent closing console right after process error in windows
This commit is contained in:
commit
52e2c60190
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue