Skip to content

Commit

Permalink
gui: make sure we leave fullscreen if we start a player without media
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus committed Jan 20, 2013
1 parent c945aab commit 41e56ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xbmc/Application.cpp
Expand Up @@ -4182,7 +4182,7 @@ bool CApplication::PlayFile(const CFileItem& item, bool bRestart)
} }


#ifdef HAS_VIDEO_PLAYBACK #ifdef HAS_VIDEO_PLAYBACK
if( IsPlayingVideo() ) else if( IsPlayingVideo() )
{ {
if (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION) if (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION)
g_windowManager.ActivateWindow(WINDOW_FULLSCREEN_VIDEO); g_windowManager.ActivateWindow(WINDOW_FULLSCREEN_VIDEO);
Expand Down Expand Up @@ -4211,6 +4211,13 @@ bool CApplication::PlayFile(const CFileItem& item, bool bRestart)
} }
} }
#endif #endif
else
{
if (g_windowManager.GetActiveWindow() == WINDOW_VISUALISATION
|| g_windowManager.GetActiveWindow() == WINDOW_FULLSCREEN_VIDEO)
g_windowManager.PreviousWindow();

}


#if !defined(TARGET_DARWIN) && !defined(_LINUX) #if !defined(TARGET_DARWIN) && !defined(_LINUX)
g_audioManager.Enable(false); g_audioManager.Enable(false);
Expand Down

0 comments on commit 41e56ae

Please sign in to comment.