Permalink
Browse files

[pvr] Fix get last played position for recording: use -1 instead of 0…

… as default rc for GetRecordingLastPlayedPosition as 0 is treated as a valid resumepoint, whereas -1 is not.
  • Loading branch information...
1 parent 08211a9 commit c8231cf308cba9ed035ac9a72378792c860e1391 @mikkle mikkle committed Oct 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/pvr/recordings/PVRRecording.cpp
@@ -171,7 +171,7 @@ bool CPVRRecording::SetLastPlayedPosition(int lastplayedposition)
int CPVRRecording::GetLastPlayedPosition() const
{
- int rc = 0;
+ int rc = -1;
if (g_PVRClients->SupportsLastPlayedPosition(m_iClientId))
{
rc = g_PVRClients->GetRecordingLastPlayedPosition(*this);

0 comments on commit c8231cf

Please sign in to comment.