Skip to content
Browse files

pvr: Fix fullscreen switch behaviour when playminimized is turned off

  • Loading branch information...
1 parent a2131e1 commit b9e9b29fa2829325609a821a9acd9cc234efc99c @mikrohard mikrohard committed with Jun 4, 2012
Showing with 6 additions and 11 deletions.
  1. +6 −11 xbmc/pvr/windows/GUIWindowPVRCommon.cpp
View
17 xbmc/pvr/windows/GUIWindowPVRCommon.cpp
@@ -655,20 +655,15 @@ bool CGUIWindowPVRCommon::PlayRecording(CFileItem *item, bool bPlayMinimized /*
bool CGUIWindowPVRCommon::PlayFile(CFileItem *item, bool bPlayMinimized /* = false */)
{
- if (bPlayMinimized)
+ if (item->GetPath() == g_application.CurrentFile())
{
- if (item->GetPath() == g_application.CurrentFile())
- {
- CGUIMessage msg(GUI_MSG_FULLSCREEN, 0, m_parent->GetID());
- g_windowManager.SendMessage(msg);
- return true;
- }
- else
- {
- g_settings.m_bStartVideoWindowed = true;
- }
+ CGUIMessage msg(GUI_MSG_FULLSCREEN, 0, m_parent->GetID());
+ g_windowManager.SendMessage(msg);
+ return true;
}
+ g_settings.m_bStartVideoWindowed = bPlayMinimized;
+
if (item->GetPath().Left(17) == "pvr://recordings/")
{
return PlayRecording(item, bPlayMinimized);

0 comments on commit b9e9b29

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