From 4cc7951f83608a86fe375a9933cbd5d30412175d Mon Sep 17 00:00:00 2001 From: alex-taylor Date: Fri, 20 Dec 2024 09:39:09 +0000 Subject: [PATCH 1/2] Changed file-open mode from 'chunked' to 'no buffer' to match new behaviour in Kodi 21 --- src/lib/tsreader/FileReader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/tsreader/FileReader.cpp b/src/lib/tsreader/FileReader.cpp index 1336f2ec..77d8e9b4 100644 --- a/src/lib/tsreader/FileReader.cpp +++ b/src/lib/tsreader/FileReader.cpp @@ -51,6 +51,9 @@ long FileReader::SetFileName(const std::string& fileName) // long FileReader::OpenFile() { + // Temporary definition - this flag was added in Kodi 21, but doesn't appear in filesystem.h until Kodi 22. + int ADDON_READ_NO_BUFFER = 0x200; + int Tmo = 25; //5 in MediaPortal // Is the file already opened @@ -72,7 +75,7 @@ long FileReader::OpenFile() do { kodi::Log(ADDON_LOG_INFO, "FileReader::OpenFile() %s.", m_fileName.c_str()); - if (m_file.OpenFile(m_fileName, ADDON_READ_CHUNKED)) + if (m_file.OpenFile(m_fileName, ADDON_READ_NO_BUFFER)) { break; } From 4821deb0234f8bf6ae5b20d8d58d86c4a0ab9886 Mon Sep 17 00:00:00 2001 From: alex-taylor Date: Sat, 21 Dec 2024 15:30:30 +0000 Subject: [PATCH 2/2] Updated changelog and bumped version --- pvr.argustv/addon.xml.in | 2 +- pvr.argustv/changelog.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pvr.argustv/addon.xml.in b/pvr.argustv/addon.xml.in index 31b4e8b2..b70e331b 100644 --- a/pvr.argustv/addon.xml.in +++ b/pvr.argustv/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.argustv/changelog.txt b/pvr.argustv/changelog.txt index eb62d790..cfb3332c 100644 --- a/pvr.argustv/changelog.txt +++ b/pvr.argustv/changelog.txt @@ -1,3 +1,6 @@ +v21.1.0 +- Updated file-open mode to ADDON_READ_NO_BUFFER for compatibility with Kodi 21 + v21.0.2 - Translations updates from Weblate - es_es, et_ee