@@ -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 ;
0 commit comments