From 0eef699b45343f316ac9ffc0f39b385388daeaa3 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 8 Nov 2016 15:08:49 +0100 Subject: [PATCH] Only retrieve stream source if no tracks available --- src/output/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index 08d4cad5..b79977cc 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -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();