vlc | branch: master | Steve Lhomme <[email protected]> | Mon Mar 25 15:50:23 2019 +0100| [f807dddc09c477133b4223e6cb73b045d11e5324] | committer: Steve Lhomme
vout:win32: only update the window positions if the placement changed > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f807dddc09c477133b4223e6cb73b045d11e5324 --- modules/video_output/win32/common.c | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c index 7eaac8ac8e..1effecf2d0 100644 --- a/modules/video_output/win32/common.c +++ b/modules/video_output/win32/common.c @@ -203,26 +203,29 @@ void UpdateRects(vout_display_t *vd, vout_display_sys_win32_t *sys, bool is_forc sys->place.x, sys->place.y, sys->place.x + sys->place.width, sys->place.y + sys->place.height); #endif - } #if !VLC_WINSTORE_APP - if (!sys->b_windowless) - { - EventThreadUpdatePlace(sys->event, &sys->place); - - UINT swpFlags = SWP_NOCOPYBITS | SWP_NOZORDER | SWP_ASYNCWINDOWPOS; - if (sys->is_first_placement) + if (sys != NULL) { - swpFlags |= SWP_SHOWWINDOW; - sys->is_first_placement = false; - } - SetWindowPos(sys->hvideownd, 0, - sys->place.x, sys->place.y, sys->place.width, sys->place.height, - swpFlags); + EventThreadUpdatePlace(sys->event, &sys->place); - CommonChangeThumbnailClip(VLC_OBJECT(vd), sys, true); - } + if (sys->hvideownd) + { + UINT swpFlags = SWP_NOCOPYBITS | SWP_NOZORDER | SWP_ASYNCWINDOWPOS; + if (sys->is_first_placement) + { + swpFlags |= SWP_SHOWWINDOW; + sys->is_first_placement = false; + } + SetWindowPos(sys->hvideownd, 0, + sys->place.x, sys->place.y, sys->place.width, sys->place.height, + swpFlags); + } + + CommonChangeThumbnailClip(VLC_OBJECT(vd), sys, true); + } #endif + } } #if !VLC_WINSTORE_APP _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
