diff options
author | Marton Balint <cus@passwd.hu> | 2014-09-22 22:17:06 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2014-09-23 21:08:35 +0200 |
commit | 32f1a288e2e6bcaf168f5215205ad0c405dab35f (patch) | |
tree | 137d0eff083c0781fbcc8146dcead0e77383355b /ffplay.c | |
parent | 6843b9dc78bc966bb30121828ef4f6b6755cf877 (diff) | |
download | ffmpeg-32f1a288e2e6bcaf168f5215205ad0c405dab35f.tar.gz |
ffplay: handle fullscreen status on resize event
In some cases resize events can happen even during fullscreen, so let's pass
the proper flag to SDL_SetVideoMode.
Fixes ticket #3964.
Reported-by: Jeff Dwork <jeff@reggie.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3467,7 +3467,7 @@ static void event_loop(VideoState *cur_stream) break; case SDL_VIDEORESIZE: screen = SDL_SetVideoMode(FFMIN(16383, event.resize.w), event.resize.h, 0, - SDL_HWSURFACE|SDL_RESIZABLE|SDL_ASYNCBLIT|SDL_HWACCEL); + SDL_HWSURFACE|(is_full_screen?SDL_FULLSCREEN:SDL_RESIZABLE)|SDL_ASYNCBLIT|SDL_HWACCEL); if (!screen) { av_log(NULL, AV_LOG_FATAL, "Failed to set video mode\n"); do_exit(cur_stream); |