[vlc-devel] [PATCH 31/41] vout:win32: log the src/dst rectangles even if the display width/height is 0
Steve Lhomme
robux4 at ycbcr.xyz
Fri Mar 22 16:14:09 CET 2019
---
modules/video_output/win32/common.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index db48f86c5b..17a0158e35 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -235,17 +235,6 @@ static void UpdateRectsInternal(vout_display_t *vd, vout_display_sys_win32_t *sy
rect_dest.bottom = rect_dest.top + place.height;
#endif
- /* the 2 following lines are to fix a bug when clicking on the desktop */
- if (place.width == 0 || place.height == 0) {
- goto exit;
- }
-
- /* src image dimensions */
- rect_src.left = 0;
- rect_src.top = 0;
- rect_src.right = sys->area.pf_GetPictureWidth(vd);
- rect_src.bottom = sys->area.pf_GetPictureHeight(vd);
-
#ifndef NDEBUG
msg_Dbg(vd, "DirectXUpdateRects source"
" offset: %i,%i visible: %ix%i",
@@ -261,6 +250,17 @@ static void UpdateRectsInternal(vout_display_t *vd, vout_display_sys_win32_t *sy
rect_dest.right, rect_dest.bottom);
#endif
+ /* the 2 following lines are to fix a bug when clicking on the desktop */
+ if (place.width == 0 || place.height == 0) {
+ goto exit;
+ }
+
+ /* src image dimensions */
+ rect_src.left = 0;
+ rect_src.top = 0;
+ rect_src.right = sys->area.pf_GetPictureWidth(vd);
+ rect_src.bottom = sys->area.pf_GetPictureHeight(vd);
+
#if !VLC_WINSTORE_APP
CommonChangeThumbnailClip(VLC_OBJECT(vd), sys, true);
#endif
--
2.17.1
More information about the vlc-devel
mailing list