Only retrieve stream source if no tracks available

This commit is contained in:
Thulinma 2016-11-08 15:08:49 +01:00
parent 56c1d1e3a1
commit 0eef699b45

View file

@ -323,7 +323,7 @@ namespace Mist {
INSANE_MSG("Found track/codec: %s", trit->second.codec.c_str());
}
static std::string source;
if (!source.size()){
if (!myMeta.tracks.size() && !source.size()){
IPC::sharedPage serverCfg(SHM_CONF, DEFAULT_CONF_PAGE_SIZE, false, false); ///< Contains server configuration and capabilities
IPC::semaphore configLock(SEM_CONF, O_CREAT | O_RDWR, ACCESSPERMS, 1);
configLock.wait();