Don't quit testffmpeg when alt-tabbing away
This commit is contained in:
parent
80d2ef7384
commit
f99143f437
1 changed files with 2 additions and 1 deletions
|
@ -1144,7 +1144,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Check for events */
|
/* Check for events */
|
||||||
while (SDL_PollEvent(&event)) {
|
while (SDL_PollEvent(&event)) {
|
||||||
if (event.type == SDL_EVENT_QUIT || event.type == SDL_EVENT_KEY_DOWN) {
|
if (event.type == SDL_EVENT_QUIT ||
|
||||||
|
(event.type == SDL_EVENT_KEY_DOWN && event.key.keysym.sym == SDLK_ESCAPE)) {
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue