Skip to content

Commit

Permalink
PVR Add-on API v9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Oct 22, 2024
1 parent 3175a93 commit b6d01b5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pvr.argustv/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.argustv"
version="22.1.0"
version="22.2.0"
name="ARGUS TV client"
provider-name="Fred Hoogduin, Marcel Groothuis">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.argustv/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v22.2.0
- PVR Add-on API v9.2.0

v22.1.0
- PVR Add-on API v9.0.0

Expand Down
10 changes: 5 additions & 5 deletions src/pvrclient-argustv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,7 @@ bool cPVRClientArgusTV::FindRecEntry(const std::string& recId, std::string& recE

/************************************************************/
/** Record stream handling */
bool cPVRClientArgusTV::OpenRecordedStream(const kodi::addon::PVRRecording& recinfo)
bool cPVRClientArgusTV::OpenRecordedStream(const kodi::addon::PVRRecording& recinfo, int64_t& streamId)
{
std::string UNCname;

Expand All @@ -1642,7 +1642,7 @@ bool cPVRClientArgusTV::OpenRecordedStream(const kodi::addon::PVRRecording& reci
return true;
}

void cPVRClientArgusTV::CloseRecordedStream(void)
void cPVRClientArgusTV::CloseRecordedStream(int64_t streamId)
{
kodi::Log(ADDON_LOG_DEBUG, "->CloseRecordedStream()");

Expand All @@ -1656,7 +1656,7 @@ void cPVRClientArgusTV::CloseRecordedStream(void)
}
}

int cPVRClientArgusTV::ReadRecordedStream(unsigned char* pBuffer, unsigned int iBuffersize)
int cPVRClientArgusTV::ReadRecordedStream(int64_t streamId, unsigned char* pBuffer, unsigned int iBuffersize)
{
unsigned long read_done = 0;

Expand All @@ -1673,7 +1673,7 @@ int cPVRClientArgusTV::ReadRecordedStream(unsigned char* pBuffer, unsigned int i
return read_done;
}

int64_t cPVRClientArgusTV::SeekRecordedStream(int64_t iPosition, int iWhence)
int64_t cPVRClientArgusTV::SeekRecordedStream(int64_t streamId, int64_t iPosition, int iWhence)
{
if (!m_tsreader)
{
Expand All @@ -1686,7 +1686,7 @@ int64_t cPVRClientArgusTV::SeekRecordedStream(int64_t iPosition, int iWhence)
return m_tsreader->SetFilePointer(iPosition, iWhence);
}

int64_t cPVRClientArgusTV::LengthRecordedStream(void)
int64_t cPVRClientArgusTV::LengthRecordedStream(int64_t streamId)
{
if (!m_tsreader)
{
Expand Down
10 changes: 5 additions & 5 deletions src/pvrclient-argustv.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ class cPVRClientArgusTV : public kodi::addon::CInstancePVRClient
bool IsRealTimeStream() override { return !m_bRecordingPlayback; }

/* Record stream handling */
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording) override;
void CloseRecordedStream() override;
int ReadRecordedStream(unsigned char* pBuffer, unsigned int iBufferSize) override;
int64_t SeekRecordedStream(int64_t iPosition, int iWhence) override;
int64_t LengthRecordedStream() override;
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording, int64_t& streamId) override;
void CloseRecordedStream(int64_t streamId) override;
int ReadRecordedStream(int64_t streamId, unsigned char* pBuffer, unsigned int iBufferSize) override;
int64_t SeekRecordedStream(int64_t streamId, int64_t iPosition, int iWhence) override;
int64_t LengthRecordedStream(int64_t streamId) override;

/* Used for rtsp streaming */
const char* GetLiveStreamURL(const kodi::addon::PVRChannel& channel);
Expand Down

0 comments on commit b6d01b5

Please sign in to comment.