[vlc-commits] qt: intf_win32: Don't handle video thumbnail from the interface code
Hugo Beauzée-Luyssen
git at videolan.org
Mon Mar 27 13:28:19 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 27 13:18:38 2017 +0200| [737d3ed24f602fbd3a44a2cec3cb49509740f39f] | committer: Hugo Beauzée-Luyssen
qt: intf_win32: Don't handle video thumbnail from the interface code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=737d3ed24f602fbd3a44a2cec3cb49509740f39f
---
modules/gui/qt/main_interface_win32.cpp | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt/main_interface_win32.cpp b/modules/gui/qt/main_interface_win32.cpp
index 8c642f8..f1dcadf 100644
--- a/modules/gui/qt/main_interface_win32.cpp
+++ b/modules/gui/qt/main_interface_win32.cpp
@@ -433,14 +433,11 @@ void MainInterfaceWin32::changeThumbbarButtons( int i_status )
if(S_OK != hr)
msg_Err( p_intf, "ThumbBarUpdateButtons failed with error %08lx", hr );
- if( videoWidget && THEMIM->getIM()->hasVideo() )
+ // If a video is playing, let the vout handle the thumbnail.
+ if( !videoWidget || !THEMIM->getIM()->hasVideo() )
{
- RECT rect;
- GetClientRect(WinId(videoWidget), &rect);
- hr = p_taskbl->SetThumbnailClip(WinId(this), &rect);
- }
- else
hr = p_taskbl->SetThumbnailClip(WinId(this), NULL);
- if(S_OK != hr)
- msg_Err( p_intf, "SetThumbnailClip failed with error %08lx", hr );
+ if(S_OK != hr)
+ msg_Err( p_intf, "SetThumbnailClip failed with error %08lx", hr );
+ }
}
More information about the vlc-commits
mailing list