mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00:00 
			
		
		
		
	Compare commits
	
		
			9 Commits
		
	
	
		
			1.2.5-Matr
			...
			2.0.0-Matr
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 525f1101c6 | ||
|  | 2a9d84fa8e | ||
|  | c537ad2337 | ||
|  | b01e24b0a2 | ||
|  | 5f9342abdd | ||
|  | cc34e52369 | ||
|  | 360fb03145 | ||
|  | ace4891f78 | ||
|  | 3d47c712fd | 
| @@ -1,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <addon | ||||
| 	id="pvr.octonet" | ||||
| 	version="1.2.5" | ||||
| 	version="2.0.0" | ||||
| 	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" | ||||
| @@ -41,12 +40,12 @@ void ADDON_ReadSettings(void) | ||||
| 		octonetAddress = buffer; | ||||
| } | ||||
|  | ||||
| ADDON_STATUS ADDON_Create(void *callbacks, void* props) | ||||
| ADDON_STATUS ADDON_Create(void* callbacks, const char* globalApiVersion, 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user