Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

[pvr] Fix recording resume (and check the correct addon-capability)
  • Loading branch information...
commit f13566bcffb910877df94e71450079056baf8834 2 parents d95fd3b + c8231cf
@opdenkamp opdenkamp authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.