Skip to content

Commit

Permalink
Merge pull request #160 from ksooo/addon-api-9-2-0
Browse files Browse the repository at this point in the history
PVR Add-on API v9.2.0
  • Loading branch information
ksooo authored Oct 24, 2024
2 parents d77c88f + e277a2e commit 36686b6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pvr.wmc/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.wmc"
version="22.1.0"
version="22.2.0"
name="Windows Media Center Client"
provider-name="KrustyReturns and scarecrow420">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.wmc/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
2 changes: 1 addition & 1 deletion src/pvr2wmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ bool Pvr2Wmc::CloseStream(bool notifyServer /*=true*/)
return true;
}

bool Pvr2Wmc::OpenRecordedStream(const kodi::addon::PVRRecording& recording)
bool Pvr2Wmc::OpenRecordedStream(const kodi::addon::PVRRecording& recording, int64_t& streamId)
{
if (IsServerDown())
return false;
Expand Down
10 changes: 5 additions & 5 deletions src/pvr2wmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ class ATTR_DLL_LOCAL Pvr2Wmc : public kodi::addon::CInstancePVRClient
std::vector<kodi::addon::PVREDLEntry>& edl) override;

// recording streams
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording) override;
void CloseRecordedStream() override { CloseStream(); }
int ReadRecordedStream(unsigned char* buffer, unsigned int size) override
bool OpenRecordedStream(const kodi::addon::PVRRecording& recording, int64_t& streamId) override;
void CloseRecordedStream(int64_t streamId) override { CloseStream(); }
int ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size) override
{
return ReadStream(buffer, size);
}
int64_t SeekRecordedStream(int64_t position, int whence) override
int64_t SeekRecordedStream(int64_t streamId, int64_t position, int whence) override
{
return SeekStream(position, whence);
}
int64_t LengthRecordedStream() override { return LengthStream(); }
int64_t LengthRecordedStream(int64_t streamId) override { return LengthStream(); }

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

0 comments on commit 36686b6

Please sign in to comment.