From 76474020e132c031d31e685afbe5dd99c44c4c91 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Mon, 26 Dec 2016 00:31:20 +0100 Subject: [PATCH] fix readepg from sectionsdcontrol to avoid permanently change of epd_dir, this would break epg read frequently function Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d2ef5030283dfb01de994f2b24cdd3a410062144 Author: TangoCash Date: 2016-12-26 (Mon, 26 Dec 2016) ------------------ This commit was generated by Migit --- src/eitd/sectionsd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index e131b423d..bfe88ed14 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -1225,7 +1225,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng writeLockMessaging(); data[dataLength] = '\0'; - epg_dir = (std::string)data + "/"; + std::string load_epg_dir = (std::string)data + "/"; unlockMessaging(); @@ -1233,7 +1233,7 @@ static void commandReadSIfromXML(int connfd, char *data, const unsigned dataLeng pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); - if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)epg_dir.c_str() )) + if (pthread_create (&thrInsert, &attr, insertEventsfromFile, (void *)load_epg_dir.c_str() )) { perror("sectionsd: pthread_create()"); }