Skip to content

Commit

Permalink
[API related] change SignalStatus and GetDescrambleInfo (channelUid a…
Browse files Browse the repository at this point in the history
…dded)
  • Loading branch information
AlwinEsch committed Apr 29, 2020
1 parent 896aade commit 84bf2cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,12 +1061,12 @@ int ReadLiveStream(unsigned char *pBuffer, unsigned int iBufferSize)
return dataread;
}

PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus)
PVR_ERROR GetSignalStatus(int channelUid, PVR_SIGNAL_STATUS *signalStatus)
{
if (g_client == NULL)
return PVR_ERROR_SERVER_ERROR;

return g_client->SignalStatus(signalStatus);
return g_client->GetSignalStatus(signalStatus);
}

void PauseStream(bool bPaused)
Expand Down Expand Up @@ -1174,7 +1174,7 @@ void DemuxReset() {}
void FillBuffer(bool mode) {}
void SetSpeed(int) {};
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
16 changes: 8 additions & 8 deletions src/pvrclient-mythtv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,7 @@ long long PVRClientMythTV::LengthLiveStream()
return retval;
}

PVR_ERROR PVRClientMythTV::SignalStatus(PVR_SIGNAL_STATUS &signalStatus)
PVR_ERROR PVRClientMythTV::GetSignalStatus(PVR_SIGNAL_STATUS *signalStatus)
{
if (g_bExtraDebug)
XBMC->Log(LOG_DEBUG, "%s", __FUNCTION__);
Expand All @@ -2265,18 +2265,18 @@ PVR_ERROR PVRClientMythTV::SignalStatus(PVR_SIGNAL_STATUS &signalStatus)

char buf[50];
sprintf(buf, "Myth Recorder %u", (unsigned)m_liveStream->GetCardId());
PVR_STRCPY(signalStatus.strAdapterName, buf);
PVR_STRCPY(signalStatus->strAdapterName, buf);
Myth::SignalStatusPtr signal = m_liveStream->GetSignal();
if (signal)
{
if (signal->lock)
PVR_STRCPY(signalStatus.strAdapterStatus, "Locked");
PVR_STRCPY(signalStatus->strAdapterStatus, "Locked");
else
PVR_STRCPY(signalStatus.strAdapterStatus, "No lock");
signalStatus.iSignal = signal->signal;
signalStatus.iBER = signal->ber;
signalStatus.iSNR = signal->snr;
signalStatus.iUNC = signal->ucb;
PVR_STRCPY(signalStatus->strAdapterStatus, "No lock");
signalStatus->iSignal = signal->signal;
signalStatus->iBER = signal->ber;
signalStatus->iSNR = signal->snr;
signalStatus->iUNC = signal->ucb;
}

if (g_bExtraDebug)
Expand Down
2 changes: 1 addition & 1 deletion src/pvrclient-mythtv.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class PVRClientMythTV : public Myth::EventSubscriber
int ReadLiveStream(unsigned char *pBuffer, unsigned int iBufferSize);
long long SeekLiveStream(long long iPosition, int iWhence);
long long LengthLiveStream();
PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus);
PVR_ERROR GetSignalStatus(PVR_SIGNAL_STATUS *signalStatus);
bool IsRealTimeStream() const { return m_liveStream ? true : false; }
PVR_ERROR GetStreamTimes(PVR_STREAM_TIMES *pStreamTimes);

Expand Down

0 comments on commit 84bf2cc

Please sign in to comment.