[SCM] kodi-pvr-hts/master: protect m_seekTime properly

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Fri Nov 4 23:23:35 UTC 2016


The following commit has been merged in the master branch:
commit 82779b0a7eb4b899b18b63c4978ab8ab2c4fa76e
Author: Sam Stenvall <sam.stenvall at nordsoftware.com>
Date:   Thu Jan 28 11:47:37 2016 +0200

    protect m_seekTime properly

diff --git a/src/HTSPDemuxer.cpp b/src/HTSPDemuxer.cpp
index 1d98470..677011b 100644
--- a/src/HTSPDemuxer.cpp
+++ b/src/HTSPDemuxer.cpp
@@ -167,7 +167,9 @@ bool CHTSPDemuxer::Seek
   }
 
   /* Wait for time */
+  CLockObject lock(m_conn.Mutex());
   m_seekTime = 0;
+
   if (!m_seekCond.Wait(m_conn.Mutex(), m_seekTime, Settings::GetInstance().GetResponseTimeout()))
   {
     Logger::Log(LogLevel::LEVEL_ERROR, "failed to get subscriptionSeek response");

-- 
kodi-pvr-hts packaging



More information about the pkg-multimedia-commits mailing list