npapi-vlc | branch: master | Sergey Radionov <[email protected]> | 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 <[email protected]> > 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); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
