Set the source thread name to help in debugging.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1280 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
74976838ee
commit
79ebaa04d9
|
@ -120,7 +120,8 @@ private:
|
|||
};
|
||||
|
||||
MOHSource::MOHSource(const String &name, const String &command_line)
|
||||
: ThreadedSource("slin"), m_name(name), m_command_line(command_line), m_swap(false), m_brate(16000)
|
||||
: ThreadedSource("slin"),
|
||||
m_name(name), m_command_line(command_line), m_swap(false), m_brate(16000)
|
||||
{
|
||||
Debug(DebugAll,"MOHSource::MOHSource(\"%s\", \"%s\") [%p]", name.c_str(), command_line.c_str(), this);
|
||||
}
|
||||
|
@ -153,7 +154,7 @@ MOHSource *MOHSource::getSource(const String &name)
|
|||
cmd = s_cfg.getValue("mohs", name);
|
||||
if (cmd) {
|
||||
MOHSource *s = new MOHSource(name, cmd);
|
||||
if(s->start()) {
|
||||
if (s->start("MOHSource")) {
|
||||
sources.append(s);
|
||||
return s;
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue