[vlc-commits] common/win32_fullscreen: Added automatic "Detach" from libvlc_media_player_t on new "Attach"

Sergey Radionov git at videolan.org
Wed Dec 21 12:54:16 CET 2011


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Fri Dec  2 23:19:46 2011 +0700| [c3d77bfb696713313c6b63140c14e76731dba0ff] | committer: Jean-Baptiste Kempf

common/win32_fullscreen: Added automatic "Detach" from libvlc_media_player_t on new "Attach"

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=c3d77bfb696713313c6b63140c14e76731dba0ff
---

 common/win32_fullscreen.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 612fc37..ea818d9 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -853,6 +853,10 @@ void VLCWindowsManager::LibVlcAttach(libvlc_media_player_t* p_md)
     if(!_HolderWnd)
         return;//VLCWindowsManager::CreateWindows was not called
 
+    if(_p_md && _p_md != p_md){
+        LibVlcDetach();
+    }
+
     if(!_p_md){
         _p_md = p_md;
         VlcEvents(true);



More information about the vlc-commits mailing list