fix use stack after scope

Origin commit data
------------------
Branch: ni/coolstream
Commit: d61b9745bc
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-09-21 (Thu, 21 Sep 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-09-21 18:45:47 +02:00
parent 6e8b743e1e
commit de3301769b

View File

@@ -1428,8 +1428,8 @@ void CTimeThread::run()
{
time_t dvb_time = 0;
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
const std::string tn = ("sd:" + name).c_str();
set_threadname(tn.c_str());
addFilters();
DMX::start();
@@ -1543,8 +1543,8 @@ int CSectionThread::Sleep()
void CSectionThread::run()
{
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
const std::string tn = ("sd:" + name).c_str();
set_threadname(tn.c_str());
if (sections_debug)
dump_sched_info(name);