From 8a967780ae380fa9f23fcd08503657db7ad9db0e Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:06:11 +0200 Subject: [PATCH] test --- pvr.hts/addon.xml.in | 2 +- src/Tvheadend.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pvr.hts/addon.xml.in b/pvr.hts/addon.xml.in index 09d47a87..a3d4139f 100644 --- a/pvr.hts/addon.xml.in +++ b/pvr.hts/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/src/Tvheadend.cpp b/src/Tvheadend.cpp index 2d100534..4800313c 100644 --- a/src/Tvheadend.cpp +++ b/src/Tvheadend.cpp @@ -754,15 +754,15 @@ PVR_ERROR CTvheadend::GetRecordingLastPlayedPosition(const kodi::addon::PVRRecor if (!m_asyncState.WaitForState(ASYNC_EPG)) return PVR_ERROR_FAILED; - std::lock_guard lock(m_mutex); - - const auto& it = m_recordings.find(std::stoul(rec.GetRecordingId())); - if (it != m_recordings.end() && it->second.IsRecording()) - { - Logger::Log(LogLevel::LEVEL_DEBUG, "Getting play position %i for recording %s", - it->second.GetPlayPosition(), rec.GetTitle().c_str()); - playPosition = it->second.GetPlayPosition(); - } +// std::lock_guard lock(m_mutex); +// +// const auto& it = m_recordings.find(std::stoul(rec.GetRecordingId())); +// if (it != m_recordings.end() && it->second.IsRecording()) +// { +// Logger::Log(LogLevel::LEVEL_DEBUG, "Getting play position %i for recording %s", +// it->second.GetPlayPosition(), rec.GetTitle().c_str()); +// playPosition = it->second.GetPlayPosition(); +// } return PVR_ERROR_NO_ERROR; }