Skip to content
Browse files

gui: make sure we leave fullscreen if we start a player without media

  • Loading branch information...
1 parent c945aab commit 41e56aeacad458f19674945034bef4dba1e04e88 @elupus elupus committed Oct 29, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 xbmc/Application.cpp
View
9 xbmc/Application.cpp
@@ -4182,7 +4182,7 @@ bool CApplication::PlayFile(const CFileItem& item, bool bRestart)
}
#ifdef HAS_VIDEO_PLAYBACK
- if( IsPlayingVideo() )
+ else if( IsPlayingVideo() )
{
if (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION)
g_windowManager.ActivateWindow(WINDOW_FULLSCREEN_VIDEO);
@@ -4211,6 +4211,13 @@ bool CApplication::PlayFile(const CFileItem& item, bool bRestart)
}
}
#endif
+ else
+ {
+ if (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION
+ || g_windowManager.GetActiveWindow() == WINDOW_FULLSCREEN_VIDEO)
+ g_windowManager.PreviousWindow();
+
+ }
#if !defined(TARGET_DARWIN) && !defined(_LINUX)
g_audioManager.Enable(false);

0 comments on commit 41e56ae

Please sign in to comment.
Something went wrong with that request. Please try again.