[vlc-commits] vout: do not send dummy windowed event before resize
Rémi Denis-Courmont
git at videolan.org
Tue Dec 20 00:16:19 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 20 00:57:02 2016 +0200| [2108a26c4a2f3e80b6cf2150d6b4c97972804c3c] | committer: Rémi Denis-Courmont
vout: do not send dummy windowed event before resize
Sending a non-fullscreen/windowed event to the core has to effects:
- get a fullscreen change event back, which is ignored,
- get a resize request, which is clobbered by the following resize.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2108a26c4a2f3e80b6cf2150d6b4c97972804c3c
---
modules/video_output/aa.c | 1 -
modules/video_output/caopengllayer.m | 1 -
modules/video_output/ios2.m | 1 -
modules/video_output/vmem.c | 1 -
4 files changed, 4 deletions(-)
diff --git a/modules/video_output/aa.c b/modules/video_output/aa.c
index 88f6ac7..e4ff139 100644
--- a/modules/video_output/aa.c
+++ b/modules/video_output/aa.c
@@ -134,7 +134,6 @@ static int Open(vlc_object_t *object)
/* Inspect initial configuration and send correction events
* FIXME how to handle aspect ratio with aa ? */
- vout_display_SendEventFullscreen(vd, false);
vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height);
return VLC_SUCCESS;
diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 225220d..34aa237 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -273,7 +273,6 @@ static int Open (vlc_object_t *p_this)
outputSize = [container currentOutputSize];
else
outputSize = [sys->container visibleRect].size;
- vout_display_SendEventFullscreen(vd, false);
vout_display_SendEventDisplaySize(vd, (int)outputSize.width, (int)outputSize.height);
return VLC_SUCCESS;
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 3f89b0a..74106ad 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -301,7 +301,6 @@ static int Open(vlc_object_t *this)
scaleFactor = sys->viewContainer.contentScaleFactor;
viewSize = sys->viewContainer.bounds.size;
}
- vout_display_SendEventFullscreen(vd, false);
vout_display_SendEventDisplaySize(vd, viewSize.width * scaleFactor, viewSize.height * scaleFactor);
/* */
diff --git a/modules/video_output/vmem.c b/modules/video_output/vmem.c
index 25d8a86..d0ff716 100644
--- a/modules/video_output/vmem.c
+++ b/modules/video_output/vmem.c
@@ -222,7 +222,6 @@ static int Open(vlc_object_t *object)
vd->manage = NULL;
/* */
- vout_display_SendEventFullscreen(vd, false);
vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height);
vout_display_DeleteWindow(vd, NULL);
return VLC_SUCCESS;
More information about the vlc-commits
mailing list