Skip to content

Commit

Permalink
Merge pull request xbmc#1557 from mikkle/fix-recording-resume
Browse files Browse the repository at this point in the history
[pvr] Fix recording resume (and check the correct addon-capability)
  • Loading branch information
Lars Op den Kamp committed Oct 8, 2012
2 parents d95fd3b + c8231cf commit f13566b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/pvr/recordings/PVRRecording.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ bool CPVRRecording::IncrementPlayCount()
bool CPVRRecording::SetLastPlayedPosition(int lastplayedposition)
{
PVR_ERROR error;
if (g_PVRClients->SupportsRecordingPlayCount(m_iClientId) &&
if (g_PVRClients->SupportsLastPlayedPosition(m_iClientId) &&
!g_PVRClients->SetRecordingLastPlayedPosition(*this, lastplayedposition, &error))
{
DisplayError(error);
Expand All @@ -171,8 +171,8 @@ bool CPVRRecording::SetLastPlayedPosition(int lastplayedposition)

int CPVRRecording::GetLastPlayedPosition() const
{
int rc = 0;
if (g_PVRClients->SupportsRecordingPlayCount(m_iClientId))
int rc = -1;
if (g_PVRClients->SupportsLastPlayedPosition(m_iClientId))
{
rc = g_PVRClients->GetRecordingLastPlayedPosition(*this);
if (rc < 0)
Expand Down

0 comments on commit f13566b

Please sign in to comment.