Skip to content

Commit

Permalink
Merge pull request #34 from janbar/master
Browse files Browse the repository at this point in the history
adapt to PVR API 5.2.0
  • Loading branch information
manuelm committed Apr 23, 2016
2 parents 6ab861f + f6ffca2 commit 73df0ac
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions pvr.dvbviewer/addon.xml.in
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.dvbviewer"
version="2.2.0"
version="2.3.0"
name="DVBViewer Client"
provider-name="A600, Manuel Mausz">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="5.1.1"/>
<import addon="xbmc.pvr" version="5.2.0"/>
</requires>
<extension
point="xbmc.pvrclient"
Expand Down
3 changes: 3 additions & 0 deletions pvr.dvbviewer/changelog.txt
@@ -1,3 +1,6 @@
2.3.0
[updated] to PVR API v5.2.0

2.2.0
[updated] to PVR API v5.1.1
[updated] Require DVB Viewer Recording Service 1.30.1 or later
Expand Down
5 changes: 0 additions & 5 deletions src/RecordingReader.cpp
Expand Up @@ -94,8 +94,3 @@ int64_t RecordingReader::Length()
return m_len;
}

void RecordingReader::Announce(const char *message)
{
if (strcmp(message, "OnPlay") == 0)
m_playback = true;
}
2 changes: 1 addition & 1 deletion src/RecordingReader.h
Expand Up @@ -15,7 +15,7 @@ class RecordingReader
int64_t Seek(long long position, int whence);
int64_t Position();
int64_t Length();
void Announce(const char *message);
void OnPlay() { m_playback = true; }

private:
std::string m_streamURL;
Expand Down
23 changes: 16 additions & 7 deletions src/client.cpp
Expand Up @@ -287,17 +287,26 @@ void ADDON_FreeSettings()
{
}

void ADDON_Announce(const char *_UNUSED(flag), const char *sender,
const char *message, const void *_UNUSED(data))
{
if (recReader != nullptr && strcmp(sender, "xbmc") == 0)
recReader->Announce(message);
}

/***********************************************************
* PVR Client AddOn specific public library functions
***********************************************************/

void OnSystemSleep()
{
}

void OnSystemWake()
{
}

void OnPowerSavingActivated()
{
}

void OnPowerSavingDeactivated()
{
}

const char* GetPVRAPIVersion(void)
{
return XBMC_PVR_API_VERSION;
Expand Down

0 comments on commit 73df0ac

Please sign in to comment.