Skip to content

Commit 25909ce

Browse files
authored
Merge pull request #316 from ksooo/addon-api-9-2-0
PVR Add-on API v9.2.0
2 parents 6e8b63f + acd20a4 commit 25909ce

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

pvr.vbox/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.vbox"
4-
version="22.1.0"
4+
version="22.2.0"
55
name="VBox TV Gateway PVR Client"
66
provider-name="Sam Stenvall">
77
<requires>@ADDON_DEPENDS@</requires>

src/VBoxInstance.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -823,9 +823,9 @@ void PauseStream(bool bPaused)
823823
}
824824

825825
// Recording stream methods
826-
bool CVBoxInstance::OpenRecordedStream(const kodi::addon::PVRRecording & recording)
826+
bool CVBoxInstance::OpenRecordedStream(const kodi::addon::PVRRecording & recording, int64_t& streamId)
827827
{
828-
CloseRecordedStream();
828+
CloseRecordedStream(streamId);
829829

830830
unsigned int id = static_cast<unsigned int>(std::stoi(recording.GetRecordingId()));
831831
auto& recordings = VBox::GetRecordingsAndTimers();
@@ -858,29 +858,29 @@ bool CVBoxInstance::OpenRecordedStream(const kodi::addon::PVRRecording & recordi
858858
return m_recordingReader->Start();
859859
}
860860

861-
void CVBoxInstance::CloseRecordedStream()
861+
void CVBoxInstance::CloseRecordedStream(int64_t streamId)
862862
{
863863
delete m_recordingReader;
864864
m_recordingReader = nullptr;
865865
}
866866

867-
int CVBoxInstance::ReadRecordedStream(unsigned char* buffer, unsigned int size)
867+
int CVBoxInstance::ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size)
868868
{
869869
if (!m_recordingReader)
870870
return 0;
871871

872872
return m_recordingReader->ReadData(buffer, size);
873873
}
874874

875-
int64_t CVBoxInstance::SeekRecordedStream(int64_t position, int whence)
875+
int64_t CVBoxInstance::SeekRecordedStream(int64_t streamId, int64_t position, int whence)
876876
{
877877
if (!m_recordingReader)
878878
return 0;
879879

880880
return m_recordingReader->Seek(position, whence);
881881
}
882882

883-
int64_t CVBoxInstance::LengthRecordedStream()
883+
int64_t CVBoxInstance::LengthRecordedStream(int64_t streamId)
884884
{
885885
if (!m_recordingReader)
886886
return -1;

src/VBoxInstance.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ class ATTR_DLL_LOCAL CVBoxInstance : public kodi::addon::CInstancePVRClient, pri
7171
bool IsRealTimeStream() override;
7272
PVR_ERROR GetStreamTimes(kodi::addon::PVRStreamTimes& times) override;
7373

74-
bool OpenRecordedStream(const kodi::addon::PVRRecording & recording) override;
75-
void CloseRecordedStream() override;
76-
int ReadRecordedStream(unsigned char* buffer, unsigned int size) override;
77-
int64_t SeekRecordedStream(int64_t position, int whence) override;
78-
int64_t LengthRecordedStream() override;
74+
bool OpenRecordedStream(const kodi::addon::PVRRecording & recording, int64_t& streamId) override;
75+
void CloseRecordedStream(int64_t streamId) override;
76+
int ReadRecordedStream(int64_t streamId, unsigned char* buffer, unsigned int size) override;
77+
int64_t SeekRecordedStream(int64_t streamId, int64_t position, int whence) override;
78+
int64_t LengthRecordedStream(int64_t streamId) override;
7979

8080
private:
8181
vbox::RecordingReader* m_recordingReader = nullptr;

0 commit comments

Comments
 (0)