Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
- index dd566d9..6cc4dd0 100644
- --- a/mythtv/programs/mythbackend/mainserver.cpp
- +++ b/mythtv/programs/mythbackend/mainserver.cpp
- @@ -2418,10 +2418,25 @@ void MainServer::HandleCheckRecordingActive(QStringList &slist,
- void MainServer::HandleStopRecording(QStringList &slist, PlaybackSock *pbs)
- {
- + ProgramList schedList;
- + bool hasConflicts = false;
- + LoadFromScheduler(schedList, hasConflicts);
- +
- QStringList::const_iterator it = slist.begin() + 1;
- RecordingInfo recinfo(it, slist.end());
- if (recinfo.GetChanID())
- + {
- + // Stop recording may have been called for the same program on
- + // different channel in the guide, we need to find the actual channel
- + // that the recording is occurring on
- + for( uint n = 0; n < schedList.size(); n++)
- + {
- + ProgramInfo *pInfo = schedList[n];
- + if ((pInfo->recstatus == rsTuning ||
- pInfo->recstatus == rsRecording)
- && recinfo.IsSameProgram(pInfo))
- + recinfo.chanid = pInfo->chanid;
- + }
- DoHandleStopRecording(recinfo, pbs);
- + }
- }
- void MainServer::DoHandleStopRecording(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement