[SCM] kodi-pvr-hts/master: Fixed CHTSPConnection::SetState not to transfer pointer to data of a temporary string to kodi

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


The following commit has been merged in the master branch:
commit f81f150edc18b04074695968991582786aca1b11
Author: Kai Sommerfeld <kai.sommerfeld at gmx.com>
Date:   Thu Mar 31 10:02:19 2016 +0200

    Fixed CHTSPConnection::SetState not to transfer pointer to data of a temporary string to kodi

diff --git a/src/HTSPConnection.cpp b/src/HTSPConnection.cpp
index 5c9e154..12679c9 100644
--- a/src/HTSPConnection.cpp
+++ b/src/HTSPConnection.cpp
@@ -228,8 +228,11 @@ void CHTSPConnection::SetState ( PVR_CONNECTION_STATE state )
 
   if (prevState != newState)
   {
+    static std::string serverString;
+
     /* Notify connection state change (callback!) */
-    PVR->ConnectionStateChange(GetServerString().c_str(), newState, NULL);
+    serverString = GetServerString();
+    PVR->ConnectionStateChange(serverString.c_str(), newState, NULL);
   }
 }
 

-- 
kodi-pvr-hts packaging



More information about the pkg-multimedia-commits mailing list