Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[pvr] fix: Check for SupportsLastPlayedPosition instead of SupportsRe…

…cordingPlayCount when getting/setting last played position for recording.
  • Loading branch information...
commit 08211a94a3be57ab8c96353771a93ebeb305b9d9 1 parent f69f18c
@mikkle mikkle authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/pvr/recordings/PVRRecording.cpp
View
4 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);
@@ -172,7 +172,7 @@ bool CPVRRecording::SetLastPlayedPosition(int lastplayedposition)
int CPVRRecording::GetLastPlayedPosition() const
{
int rc = 0;
- if (g_PVRClients->SupportsRecordingPlayCount(m_iClientId))
+ 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.