1
0
mirror of https://github.com/DigitalDevices/pvr.octonet.git synced 2023-10-10 13:36:57 +02:00

[API related] change SignalStatus and GetDescrambleInfo (channelUid added)

This commit is contained in:
Alwin Esch 2020-04-29 20:47:22 +02:00
parent 360fb03145
commit cc34e52369
3 changed files with 8 additions and 8 deletions

View File

@ -231,15 +231,15 @@ long long SeekLiveStream(long long iPosition, int iWhence) { return -1; }
long long LengthLiveStream(void) { return -1; } long long LengthLiveStream(void) { return -1; }
bool IsRealTimeStream(void) { return true; } bool IsRealTimeStream(void) { return true; }
PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS& signalStatus) { PVR_ERROR GetSignalStatus(int channelUid, PVR_SIGNAL_STATUS* signalStatus) {
memset(&signalStatus, 0, sizeof(PVR_SIGNAL_STATUS)); memset(signalStatus, 0, sizeof(PVR_SIGNAL_STATUS));
rtsp_fill_signal_status(signalStatus); rtsp_fill_signal_status(signalStatus);
return PVR_ERROR_NO_ERROR; return PVR_ERROR_NO_ERROR;
} }
PVR_ERROR GetStreamTimes(PVR_STREAM_TIMES *times) { return PVR_ERROR_NOT_IMPLEMENTED; } 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 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 */ /* Recording stream handling */
bool OpenRecordedStream(const PVR_RECORDING& recording) { return false; } bool OpenRecordedStream(const PVR_RECORDING& recording) { return false; }

View File

@ -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) { if(rtsp) {
strncpy(signal_status.strServiceName, rtsp->name.c_str(), PVR_ADDON_NAME_STRING_LENGTH - 1); strncpy(signal_status->strServiceName, rtsp->name.c_str(), PVR_ADDON_NAME_STRING_LENGTH - 1);
signal_status.iSNR = 0x1111 * rtsp->quality; signal_status->iSNR = 0x1111 * rtsp->quality;
signal_status.iSignal = 0x101 * rtsp->level; signal_status->iSignal = 0x101 * rtsp->level;
} }
} }

View File

@ -7,6 +7,6 @@
bool rtsp_open(const std::string& name, const std::string& url_str); bool rtsp_open(const std::string& name, const std::string& url_str);
void rtsp_close(); void rtsp_close();
int rtsp_read(void *buf, unsigned buf_size); 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 #endif