Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Matrix] API change updates #131

Merged
merged 3 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pvr.vdr.vnsi/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.vdr.vnsi"
version="4.2.8"
version="4.2.9"
name="VDR VNSI Client"
provider-name="Team Kodi, FernetMenta">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.vdr.vnsi/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
4.2.9
- Update PVR API 6.5.0

4.2.8
- Update PVR API 6.4.0
- Correct license name on addon.xml
Expand Down
14 changes: 7 additions & 7 deletions src/VNSIDemux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,17 +323,17 @@ bool cVNSIDemux::SwitchChannel(const PVR_CHANNEL &channelinfo)
return true;
}

bool cVNSIDemux::GetSignalStatus(PVR_SIGNAL_STATUS &qualityinfo)
bool cVNSIDemux::GetSignalStatus(PVR_SIGNAL_STATUS *qualityinfo)
{
if (m_Quality.fe_name.empty())
return true;

strncpy(qualityinfo.strAdapterName, m_Quality.fe_name.c_str(), sizeof(qualityinfo.strAdapterName));
strncpy(qualityinfo.strAdapterStatus, m_Quality.fe_status.c_str(), sizeof(qualityinfo.strAdapterStatus));
qualityinfo.iSignal = (uint16_t)m_Quality.fe_signal;
qualityinfo.iSNR = (uint16_t)m_Quality.fe_snr;
qualityinfo.iBER = (uint32_t)m_Quality.fe_ber;
qualityinfo.iUNC = (uint32_t)m_Quality.fe_unc;
strncpy(qualityinfo->strAdapterName, m_Quality.fe_name.c_str(), sizeof(qualityinfo->strAdapterName));
strncpy(qualityinfo->strAdapterStatus, m_Quality.fe_status.c_str(), sizeof(qualityinfo->strAdapterStatus));
qualityinfo->iSignal = (uint16_t)m_Quality.fe_signal;
qualityinfo->iSNR = (uint16_t)m_Quality.fe_snr;
qualityinfo->iBER = (uint32_t)m_Quality.fe_ber;
qualityinfo->iUNC = (uint32_t)m_Quality.fe_unc;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/VNSIDemux.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class cVNSIDemux : public cVNSISession
DemuxPacket* Read();
bool SwitchChannel(const PVR_CHANNEL &channelinfo);
int CurrentChannel() { return m_channelinfo.iChannelNumber; }
bool GetSignalStatus(PVR_SIGNAL_STATUS &qualityinfo);
bool GetSignalStatus(PVR_SIGNAL_STATUS *qualityinfo);
bool IsTimeshift() { return m_bTimeshift; }
bool SeekTime(int time, bool backwards, double *startpts);
bool GetStreamTimes(PVR_STREAM_TIMES *times);
Expand Down
6 changes: 3 additions & 3 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void OnPowerSavingDeactivated()
{
}

PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES* pCapabilities)
PVR_ERROR GetCapabilities(PVR_ADDON_CAPABILITIES* pCapabilities)
{
pCapabilities->bSupportsEPG = true;
pCapabilities->bSupportsRecordings = true;
Expand Down Expand Up @@ -798,7 +798,7 @@ PVR_ERROR GetStreamTimes(PVR_STREAM_TIMES *times)
return PVR_ERROR_SERVER_ERROR;
}

PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus)
PVR_ERROR GetSignalStatus(int channelUid, PVR_SIGNAL_STATUS *signalStatus)
{
if (!VNSIDemuxer)
return PVR_ERROR_SERVER_ERROR;
Expand Down Expand Up @@ -978,7 +978,7 @@ PVR_ERROR SetRecordingLastPlayedPosition(const PVR_RECORDING &recording, int las
int GetRecordingLastPlayedPosition(const PVR_RECORDING &recording) { return -1; }
PVR_ERROR GetRecordingSize(const PVR_RECORDING* recording, int64_t* sizeInBytes) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR SetEPGTimeFrame(int) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR GetDescrambleInfo(PVR_DESCRAMBLE_INFO*) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR GetDescrambleInfo(int, PVR_DESCRAMBLE_INFO*) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR SetRecordingLifetime(const PVR_RECORDING*) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR GetChannelStreamProperties(const PVR_CHANNEL*, PVR_NAMED_VALUE*, unsigned int*) { return PVR_ERROR_NOT_IMPLEMENTED; }
PVR_ERROR GetRecordingStreamProperties(const PVR_RECORDING*, PVR_NAMED_VALUE*, unsigned int*) { return PVR_ERROR_NOT_IMPLEMENTED; }
Expand Down