Skip to content
Browse files

Merge pull request #1557 from mikkle/fix-recording-resume

[pvr] Fix recording resume (and check the correct addon-capability)
  • Loading branch information...
2 parents d95fd3b + c8231cf commit f13566bcffb910877df94e71450079056baf8834 @opdenkamp opdenkamp committed Oct 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 xbmc/pvr/recordings/PVRRecording.cpp
View
6 xbmc/pvr/recordings/PVRRecording.cpp
@@ -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);
@@ -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)

0 comments on commit f13566b

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