Skip to content

Commit 390a950

Browse files
authored
PVR Add-on API v9.2.0 (#195)
1 parent c6675e5 commit 390a950

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

pvr.dvbviewer/addon.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="pvr.dvbviewer"
4-
version="22.1.0"
4+
version="22.2.0"
55
name="DVBViewer Client"
66
provider-name="Manuel Mausz">
77
<requires>@ADDON_DEPENDS@</requires>

pvr.dvbviewer/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v22.2.0
2+
- PVR Add-on API v9.2.0
3+
14
v22.1.0
25
- PVR Add-on API v9.0.0
36

src/DvbData.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ PVR_ERROR Dvb::GetRecordingsAmount(bool deleted, int& amount)
790790
return PVR_ERROR_NO_ERROR;
791791
}
792792

793-
bool Dvb::OpenRecordedStream(const kodi::addon::PVRRecording& recinfo)
793+
bool Dvb::OpenRecordedStream(const kodi::addon::PVRRecording& recinfo, int64_t& streamId)
794794
{
795795
std::lock_guard<std::mutex> lock(m_mutex);
796796

@@ -835,29 +835,29 @@ bool Dvb::OpenRecordedStream(const kodi::addon::PVRRecording& recinfo)
835835
return m_recReader->Start();
836836
}
837837

838-
void Dvb::CloseRecordedStream()
838+
void Dvb::CloseRecordedStream(int64_t streamId)
839839
{
840840
if (m_recReader)
841841
SafeDelete(m_recReader);
842842
}
843843

844-
int Dvb::ReadRecordedStream(unsigned char* buffer, unsigned int size)
844+
int Dvb::ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size)
845845
{
846846
if (!m_recReader)
847847
return 0;
848848

849849
return static_cast<int>(m_recReader->ReadData(buffer, size));
850850
}
851851

852-
int64_t Dvb::SeekRecordedStream(int64_t position, int whence)
852+
int64_t Dvb::SeekRecordedStream(int64_t streamId, int64_t position, int whence)
853853
{
854854
if (!m_recReader)
855855
return 0;
856856

857857
return m_recReader->Seek(position, whence);
858858
}
859859

860-
int64_t Dvb::LengthRecordedStream()
860+
int64_t Dvb::LengthRecordedStream(int64_t streamId)
861861
{
862862
if (!m_recReader)
863863
return -1;

src/DvbData.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ class Dvb
190190
PVR_ERROR DeleteRecording(
191191
const kodi::addon::PVRRecording& recording) override;
192192
PVR_ERROR GetRecordingsAmount(bool deleted, int& amount) override;
193-
bool OpenRecordedStream(const kodi::addon::PVRRecording& recinfo) override;
194-
void CloseRecordedStream() override;
195-
int ReadRecordedStream(unsigned char* buffer, unsigned int size) override;
196-
int64_t SeekRecordedStream(int64_t position, int whence) override;
197-
int64_t LengthRecordedStream() override;
193+
bool OpenRecordedStream(const kodi::addon::PVRRecording& recinfo, int64_t& streamId) override;
194+
void CloseRecordedStream(int64_t streamId) override;
195+
int ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size) override;
196+
int64_t SeekRecordedStream(int64_t streamId, int64_t position, int whence) override;
197+
int64_t LengthRecordedStream(int64_t streamId) override;
198198
PVR_ERROR GetRecordingEdl(const kodi::addon::PVRRecording& recinfo,
199199
std::vector<kodi::addon::PVREDLEntry>& edl) override;
200200
PVR_ERROR SetRecordingPlayCount(const kodi::addon::PVRRecording& recinfo,

0 commit comments

Comments
 (0)