Commit c3d77bfb authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bb6eb59d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment