ffplay: properly detect all window size changes
from Brad (maintainer)
This commit is contained in:
parent
12690c9f7a
commit
610e6c4a61
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.191 2019/08/17 19:11:24 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.192 2019/08/18 06:54:06 ajacoutot Exp $
|
||||
|
||||
COMMENT= audio/video converter and streamer
|
||||
|
||||
V= 4.2
|
||||
DISTNAME= ffmpeg-${V}
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
EPOCH= 0
|
||||
CATEGORIES= graphics multimedia
|
||||
MASTER_SITES= https://ffmpeg.org/releases/
|
||||
|
20
graphics/ffmpeg/patches/patch-fftools_ffplay_c
Normal file
20
graphics/ffmpeg/patches/patch-fftools_ffplay_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-fftools_ffplay_c,v 1.1 2019/08/18 06:54:06 ajacoutot Exp $
|
||||
|
||||
ffplay: properly detect all window size changes
|
||||
|
||||
SDL_WINDOWEVENT_SIZE_CHANGED should be used instead of SDL_WINDOWEVENT_RESIZED
|
||||
because SDL_WINDOWEVENT_RESIZED is only emitted if the resize happened due to
|
||||
an external event.
|
||||
|
||||
Index: fftools/ffplay.c
|
||||
--- fftools/ffplay.c.orig
|
||||
+++ fftools/ffplay.c
|
||||
@@ -3436,7 +3436,7 @@ static void event_loop(VideoState *cur_stream)
|
||||
break;
|
||||
case SDL_WINDOWEVENT:
|
||||
switch (event.window.event) {
|
||||
- case SDL_WINDOWEVENT_RESIZED:
|
||||
+ case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||
screen_width = cur_stream->width = event.window.data1;
|
||||
screen_height = cur_stream->height = event.window.data2;
|
||||
if (cur_stream->vis_texture) {
|
Loading…
x
Reference in New Issue
Block a user