Skip to content
This repository
Browse code

[pvr] fixed - check for a recording tag instead of checking the path …

…in CGUIWindowPVRCommon::PlayFile(). fixes dialog popping up that a channel can't be played when selecting a recording. closes trac 13373
  • Loading branch information...
commit 2680e87f3aa35b1235dc2dc784f20df8290b5a46 1 parent d925641
Lars Op den Kamp authored October 03, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  xbmc/pvr/windows/GUIWindowPVRCommon.cpp
4  xbmc/pvr/windows/GUIWindowPVRCommon.cpp
@@ -610,7 +610,7 @@ bool CGUIWindowPVRCommon::ShowTimerSettings(CFileItem *item)
610 610
 
611 611
 bool CGUIWindowPVRCommon::PlayRecording(CFileItem *item, bool bPlayMinimized /* = false */)
612 612
 {
613  
-  if (item->GetPath().Left(17) != "pvr://recordings/")
  613
+  if (!item->HasPVRRecordingInfoTag())
614 614
     return false;
615 615
 
616 616
   CStdString stream = item->GetPVRRecordingInfoTag()->m_strStreamURL;
@@ -679,7 +679,7 @@ bool CGUIWindowPVRCommon::PlayFile(CFileItem *item, bool bPlayMinimized /* = fal
679 679
 
680 680
   g_settings.m_bStartVideoWindowed = bPlayMinimized;
681 681
 
682  
-  if (item->GetPath().Left(17) == "pvr://recordings/")
  682
+  if (item->HasPVRRecordingInfoTag())
683 683
   {
684 684
     return PlayRecording(item, bPlayMinimized);
685 685
   }

0 notes on commit 2680e87

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