diff --git a/pvr.demo/addon.xml.in b/pvr.demo/addon.xml.in index d19d3ae..7716513 100644 --- a/pvr.demo/addon.xml.in +++ b/pvr.demo/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/src/PVRDemoData.cpp b/src/PVRDemoData.cpp index bccaeb0..c619d9b 100644 --- a/src/PVRDemoData.cpp +++ b/src/PVRDemoData.cpp @@ -570,7 +570,7 @@ PVR_ERROR PVRDemoData::GetChannelGroupMembers(ADDON_HANDLE handle, const PVR_CHA return PVR_ERROR_NO_ERROR; } -PVR_ERROR PVRDemoData::GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL &channel, time_t iStart, time_t iEnd) +PVR_ERROR PVRDemoData::GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, time_t iStart, time_t iEnd) { if (m_iEpgStart == -1) m_iEpgStart = iStart; @@ -581,7 +581,7 @@ PVR_ERROR PVRDemoData::GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL & for (unsigned int iChannelPtr = 0; iChannelPtr < m_channels.size(); iChannelPtr++) { PVRDemoChannel &myChannel = m_channels.at(iChannelPtr); - if (myChannel.iUniqueId != (int) channel.iUniqueId) + if (myChannel.iUniqueId != iChannelUid) continue; while (iLastEndTime < iEnd && myChannel.epg.size() > 0) @@ -595,7 +595,7 @@ PVR_ERROR PVRDemoData::GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL & memset(&tag, 0, sizeof(EPG_TAG)); tag.iUniqueBroadcastId = myTag.iBroadcastId + iAddBroadcastId; - tag.iUniqueChannelId = channel.iUniqueId; + tag.iUniqueChannelId = iChannelUid; tag.strTitle = myTag.strTitle.c_str(); tag.startTime = myTag.startTime + iLastEndTime; tag.endTime = myTag.endTime + iLastEndTime; diff --git a/src/PVRDemoData.h b/src/PVRDemoData.h index 0905313..1dce736 100644 --- a/src/PVRDemoData.h +++ b/src/PVRDemoData.h @@ -39,7 +39,6 @@ struct PVRDemoEpgEntry // time_t firstAired; // int iParentalRating; // int iStarRating; -// bool bNotify; int iSeriesNumber; int iEpisodeNumber; // int iEpisodePartNumber; @@ -111,7 +110,7 @@ class PVRDemoData PVR_ERROR GetChannelGroups(ADDON_HANDLE handle, bool bRadio); PVR_ERROR GetChannelGroupMembers(ADDON_HANDLE handle, const PVR_CHANNEL_GROUP &group); - PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL &channel, time_t iStart, time_t iEnd); + PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, time_t iStart, time_t iEnd); int GetRecordingsAmount(bool bDeleted); PVR_ERROR GetRecordings(ADDON_HANDLE handle, bool bDeleted); diff --git a/src/client.cpp b/src/client.cpp index 5e21eed..c895bc3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -189,10 +189,10 @@ PVR_ERROR GetDriveSpace(long long *iTotal, long long *iUsed) return PVR_ERROR_NO_ERROR; } -PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL &channel, time_t iStart, time_t iEnd) +PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, time_t iStart, time_t iEnd) { if (m_data) - return m_data->GetEPGForChannel(handle, channel, iStart, iEnd); + return m_data->GetEPGForChannel(handle, iChannelUid, iStart, iEnd); return PVR_ERROR_SERVER_ERROR; } @@ -403,12 +403,12 @@ PVR_ERROR DeleteTimer(const PVR_TIMER &timer, bool bForceDelete) { return PVR_ER PVR_ERROR UpdateTimer(const PVR_TIMER &timer) { return PVR_ERROR_NOT_IMPLEMENTED; } void DemuxAbort(void) {} DemuxPacket* DemuxRead(void) { return NULL; } +void FillBuffer(bool mode) {} void PauseStream(bool bPaused) {} bool CanPauseStream(void) { return false; } bool CanSeekStream(void) { return false; } bool SeekTime(double,bool,double*) { return false; } void SetSpeed(int) {}; -bool IsTimeshifting(void) { return false; } bool IsRealTimeStream(void) { return true; } PVR_ERROR UndeleteRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; } PVR_ERROR DeleteAllRecordingsFromTrash() { return PVR_ERROR_NOT_IMPLEMENTED; }