Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
jsonrpc: fix PVR.ScheduleRecording after r:baa4a7ec
Browse files Browse the repository at this point in the history
  • Loading branch information
FSSDawid authored and opdenkamp committed Dec 23, 2011
1 parent 9075892 commit 23e1ef8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xbmc/interfaces/json-rpc/PVROperations.cpp
Expand Up @@ -204,18 +204,19 @@ JSON_STATUS CPVROperations::ScheduleRecording(const CStdString &method, ITranspo

CPVRTimerInfoTag *newTimer = CPVRTimerInfoTag::CreateFromEpg(*tag);
bool bCreated = (newTimer != NULL);
bool bAdded = false;

if (bCreated)
{
CLog::Log(LOGDEBUG, "JSONRPC: recording scheduled");
delete newTimer;
return ACK;
bAdded = CPVRTimers::AddTimer(*newTimer);
}
else
{
CLog::Log(LOGERROR, "JSONRPC: failed to schedule recording");
return InternalError;
}
delete newTimer;
return bAdded ? ACK : InternalError;
}
}

Expand Down

0 comments on commit 23e1ef8

Please sign in to comment.