mirror of
https://github.com/DigitalDevices/pvr.octonet.git
synced 2023-10-10 13:36:57 +02:00
Merge pull request #41 from AlwinEsch/Matrix-change
[Matrix] API change updates
This commit is contained in:
commit
b01e24b0a2
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon
|
||||
id="pvr.octonet"
|
||||
version="1.2.5"
|
||||
version="1.2.6"
|
||||
name="Digital Devices Octopus NET Client"
|
||||
provider-name="digitaldevices">
|
||||
<requires>@ADDON_DEPENDS@</requires>
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include <kodi/xbmc_pvr_dll.h>
|
||||
#include <kodi/libXBMC_addon.h>
|
||||
#include <p8-platform/util/util.h>
|
||||
#include <kodi/libKODI_guilib.h>
|
||||
|
||||
#include "OctonetData.h"
|
||||
#include "rtsp_client.hpp"
|
||||
@ -46,7 +45,7 @@ ADDON_STATUS ADDON_Create(void *callbacks, void* props)
|
||||
if (callbacks == NULL || props == NULL)
|
||||
return ADDON_STATUS_UNKNOWN;
|
||||
|
||||
PVR_PROPERTIES *pvrprops = (PVR_PROPERTIES*)props;
|
||||
AddonProperties_PVR *pvrprops = (AddonProperties_PVR*)props;
|
||||
libKodi = new CHelper_libXBMC_addon;
|
||||
if (!libKodi->RegisterMe(callbacks)) {
|
||||
libKodi->Log(LOG_ERROR, "%s: Failed to register octonet addon", __func__);
|
||||
@ -98,7 +97,7 @@ ADDON_STATUS ADDON_SetSetting(const char *settingName, const void *settingValue)
|
||||
extern "C"
|
||||
{
|
||||
|
||||
PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES *pCapabilities)
|
||||
PVR_ERROR GetCapabilities(PVR_ADDON_CAPABILITIES *pCapabilities)
|
||||
{
|
||||
pCapabilities->bSupportsTV = true;
|
||||
pCapabilities->bSupportsRadio = true;
|
||||
@ -232,15 +231,15 @@ long long SeekLiveStream(long long iPosition, int iWhence) { return -1; }
|
||||
long long LengthLiveStream(void) { return -1; }
|
||||
bool IsRealTimeStream(void) { return true; }
|
||||
|
||||
PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS& signalStatus) {
|
||||
memset(&signalStatus, 0, sizeof(PVR_SIGNAL_STATUS));
|
||||
PVR_ERROR GetSignalStatus(int channelUid, PVR_SIGNAL_STATUS* signalStatus) {
|
||||
memset(signalStatus, 0, sizeof(PVR_SIGNAL_STATUS));
|
||||
rtsp_fill_signal_status(signalStatus);
|
||||
return PVR_ERROR_NO_ERROR;
|
||||
}
|
||||
|
||||
PVR_ERROR GetStreamTimes(PVR_STREAM_TIMES *times) { return PVR_ERROR_NOT_IMPLEMENTED; }
|
||||
PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES* pProperties) { 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; }
|
||||
|
||||
/* Recording stream handling */
|
||||
bool OpenRecordedStream(const PVR_RECORDING& recording) { return false; }
|
||||
|
@ -471,10 +471,10 @@ void rtsp_close()
|
||||
}
|
||||
}
|
||||
|
||||
void rtsp_fill_signal_status(PVR_SIGNAL_STATUS& signal_status) {
|
||||
void rtsp_fill_signal_status(PVR_SIGNAL_STATUS* signal_status) {
|
||||
if(rtsp) {
|
||||
strncpy(signal_status.strServiceName, rtsp->name.c_str(), PVR_ADDON_NAME_STRING_LENGTH - 1);
|
||||
signal_status.iSNR = 0x1111 * rtsp->quality;
|
||||
signal_status.iSignal = 0x101 * rtsp->level;
|
||||
strncpy(signal_status->strServiceName, rtsp->name.c_str(), PVR_ADDON_NAME_STRING_LENGTH - 1);
|
||||
signal_status->iSNR = 0x1111 * rtsp->quality;
|
||||
signal_status->iSignal = 0x101 * rtsp->level;
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,6 @@
|
||||
bool rtsp_open(const std::string& name, const std::string& url_str);
|
||||
void rtsp_close();
|
||||
int rtsp_read(void *buf, unsigned buf_size);
|
||||
void rtsp_fill_signal_status(PVR_SIGNAL_STATUS& signal_status);
|
||||
void rtsp_fill_signal_status(PVR_SIGNAL_STATUS* signal_status);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user