diff --git a/pvr.freebox/addon.xml.in b/pvr.freebox/addon.xml.in index daae163..48de19d 100644 --- a/pvr.freebox/addon.xml.in +++ b/pvr.freebox/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/src/client.cpp b/src/client.cpp index fd3e980..950b2a6 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -55,6 +55,7 @@ bool colors = PVR_FREEBOX_DEFAULT_COLORS; bool init = false; ADDON_STATUS status = ADDON_STATUS_UNKNOWN; Freebox * data = nullptr; +bool isRecordingPlayback = false; CHelper_libXBMC_addon * XBMC = nullptr; CHelper_libXBMC_pvr * PVR = nullptr; @@ -275,6 +276,8 @@ PVR_ERROR GetChannels (ADDON_HANDLE handle, bool radio) PVR_ERROR GetChannelStreamProperties (const PVR_CHANNEL * channel, PVR_NAMED_VALUE * properties, unsigned int * count) { + isRecordingPlayback = false; + return data ? data->GetChannelStreamProperties (channel, properties, count) : PVR_ERROR_SERVER_ERROR; } @@ -305,6 +308,8 @@ PVR_ERROR GetRecordings (ADDON_HANDLE handle, bool deleted) PVR_ERROR GetRecordingStreamProperties (const PVR_RECORDING * recording, PVR_NAMED_VALUE * properties, unsigned int * count) { + isRecordingPlayback = true; + return data ? data->GetRecordingStreamProperties (recording, properties, count) : PVR_ERROR_SERVER_ERROR; } @@ -356,6 +361,11 @@ PVR_ERROR CallMenuHook (const PVR_MENUHOOK & hook, const PVR_MENUHOOK_DATA & d) return data ? data->MenuHook (hook, d) : PVR_ERROR_SERVER_ERROR; } +bool IsRealTimeStream() +{ + return !isRecordingPlayback; +} + /** UNUSED API FUNCTIONS */ bool CanPauseStream () {return false;} PVR_ERROR OpenDialogChannelScan () {return PVR_ERROR_NOT_IMPLEMENTED;} @@ -382,7 +392,6 @@ PVR_ERROR GetRecordingEdl (const PVR_RECORDING &, PVR_EDL_ENTRY [], int *) {retu void DemuxAbort () {} bool IsTimeshifting () {return false;} DemuxPacket * DemuxRead () {return NULL;} -bool IsRealTimeStream () {return true;} void PauseStream (bool) {} bool CanSeekStream () {return false;} bool SeekTime (double, bool, double *) {return false;}