mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 20:46:16 +02:00
controlscript must be located in plugin_dir
This commit is contained in:
parent
be266c07ce
commit
8e9806f35c
13 changed files with 137 additions and 46 deletions
|
@ -113,6 +113,7 @@ int main(int argc, char* argv[])
|
|||
settings.tcp.bind_to_address.front(), &settings.tcp.bind_to_address[0]);
|
||||
|
||||
// stream settings
|
||||
conf.add<Value<std::filesystem::path>>("", "stream.plugin_dir", "stream plugin directory", settings.stream.plugin_dir, &settings.stream.plugin_dir);
|
||||
auto stream_bind_to_address = conf.add<Value<string>>("", "stream.bind_to_address", "address for the server to listen on",
|
||||
settings.stream.bind_to_address.front(), &settings.stream.bind_to_address[0]);
|
||||
conf.add<Value<size_t>>("", "stream.port", "which port the server should listen on", settings.stream.port, &settings.stream.port);
|
||||
|
@ -296,6 +297,8 @@ int main(int argc, char* argv[])
|
|||
if (!streamValue->is_set() && !sourceValue->is_set())
|
||||
settings.stream.sources.push_back(sourceValue->value());
|
||||
|
||||
settings.stream.plugin_dir = std::filesystem::weakly_canonical(settings.stream.plugin_dir);
|
||||
LOG(INFO, LOG_TAG) << "Stream plugin directory: " << settings.stream.plugin_dir << "\n";
|
||||
for (size_t n = 0; n < streamValue->count(); ++n)
|
||||
{
|
||||
LOG(INFO, LOG_TAG) << "Adding stream: " << streamValue->value(n) << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue