[vlc-commits] main_interface_win32: Use the video as thumbnail image

Hugo Beauzée-Luyssen git at videolan.org
Wed Dec 28 22:11:32 CET 2016


vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Dec 28 17:16:37 2016 +0100| [2586b1f22df5755cf56102b45e92a1b4ffa27a2f] | committer: Jean-Baptiste Kempf

main_interface_win32: Use the video as thumbnail image

Or the full interface when no video is playing

(cherry picked from commit 345754bdf1f0a17544106f11321fc2043f45a4f8)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2586b1f22df5755cf56102b45e92a1b4ffa27a2f
---

 modules/gui/qt4/main_interface_win32.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/gui/qt4/main_interface_win32.cpp b/modules/gui/qt4/main_interface_win32.cpp
index d7bc4f1..9f40fed 100644
--- a/modules/gui/qt4/main_interface_win32.cpp
+++ b/modules/gui/qt4/main_interface_win32.cpp
@@ -353,4 +353,15 @@ void MainInterface::changeThumbbarButtons( int i_status )
 
     if(S_OK != hr)
         msg_Err( p_intf, "ThumbBarUpdateButtons failed with error %08lx", hr );
+
+    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 );
 }



More information about the vlc-commits mailing list