mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00:00 
			
		
		
		
	Pass signal quality and snr to Kodi core
This commit is contained in:
		| @@ -270,7 +270,11 @@ bool SwitchChannel(const PVR_CHANNEL& channel) { | ||||
| 	return OpenLiveStream(channel); | ||||
| } | ||||
|  | ||||
| PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS& signalStatus) { return PVR_ERROR_NOT_IMPLEMENTED; } | ||||
| PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS& signalStatus) { | ||||
| 	rtsp_fill_signal_status(signalStatus); | ||||
| 	return PVR_ERROR_NO_ERROR; | ||||
| } | ||||
|  | ||||
| const char* GetLiveStreamURL(const PVR_CHANNEL& channel) { return NULL; } | ||||
| PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES* pProperties) { return PVR_ERROR_NOT_IMPLEMENTED; } | ||||
|  | ||||
|   | ||||
| @@ -468,3 +468,10 @@ void rtsp_close() | ||||
| 		rtsp = NULL; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| void rtsp_fill_signal_status(PVR_SIGNAL_STATUS& signal_status) { | ||||
| 	if(rtsp) { | ||||
| 		signal_status.iSNR = 0x1111 * rtsp->quality; | ||||
| 		signal_status.iSignal = 0x101 * rtsp->level; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -2,9 +2,11 @@ | ||||
| #define _RTSP_CLIENT_HPP_ | ||||
|  | ||||
| #include <string> | ||||
| #include <xbmc_pvr_types.h> | ||||
|  | ||||
| bool rtsp_open(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); | ||||
|  | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user