Skip to content

Commit 36686b6

Browse files
authored
Merge pull request #160 from ksooo/addon-api-9-2-0
PVR Add-on API v9.2.0
2 parents d77c88f + e277a2e commit 36686b6

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

pvr.wmc/addon.xml.in

+1-1
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.wmc"
4-
version="22.1.0"
4+
version="22.2.0"
55
name="Windows Media Center Client"
66
provider-name="KrustyReturns and scarecrow420">
77
<requires>@ADDON_DEPENDS@</requires>

pvr.wmc/changelog.txt

+3
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/pvr2wmc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ bool Pvr2Wmc::CloseStream(bool notifyServer /*=true*/)
15671567
return true;
15681568
}
15691569

1570-
bool Pvr2Wmc::OpenRecordedStream(const kodi::addon::PVRRecording& recording)
1570+
bool Pvr2Wmc::OpenRecordedStream(const kodi::addon::PVRRecording& recording, int64_t& streamId)
15711571
{
15721572
if (IsServerDown())
15731573
return false;

src/pvr2wmc.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,17 @@ class ATTR_DLL_LOCAL Pvr2Wmc : public kodi::addon::CInstancePVRClient
132132
std::vector<kodi::addon::PVREDLEntry>& edl) override;
133133

134134
// recording streams
135-
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording) override;
136-
void CloseRecordedStream() override { CloseStream(); }
137-
int ReadRecordedStream(unsigned char* buffer, unsigned int size) override
135+
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording, int64_t& streamId) override;
136+
void CloseRecordedStream(int64_t streamId) override { CloseStream(); }
137+
int ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size) override
138138
{
139139
return ReadStream(buffer, size);
140140
}
141-
int64_t SeekRecordedStream(int64_t position, int whence) override
141+
int64_t SeekRecordedStream(int64_t streamId, int64_t position, int whence) override
142142
{
143143
return SeekStream(position, whence);
144144
}
145-
int64_t LengthRecordedStream() override { return LengthStream(); }
145+
int64_t LengthRecordedStream(int64_t streamId) override { return LengthStream(); }
146146

147147
// live tv
148148
bool OpenLiveStream(const kodi::addon::PVRChannel& channel) override;

0 commit comments

Comments
 (0)