[FFmpeg-devel] [PATCH] ffplay: fix borderless mode on Windows

Marton Balint cus at passwd.hu
Sat Feb 4 03:38:09 EET 2017


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 6325e6f..1c9db73 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1261,13 +1261,15 @@ static int video_open(VideoState *is)
     }
 
     if (!window) {
-        int flags = SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE;
+        int flags = SDL_WINDOW_SHOWN;
         if (!window_title)
             window_title = input_filename;
         if (is_full_screen)
             flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
         if (borderless)
             flags |= SDL_WINDOW_BORDERLESS;
+        else
+            flags |= SDL_WINDOW_RESIZABLE;
         window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, w, h, flags);
         SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
         if (window) {
-- 
2.10.2



More information about the ffmpeg-devel mailing list