provide a way to sync between visualization and sound

workaround for http://musicpd.org/mantis/view.php?id=2503
This commit is contained in:
Andrzej Rybczak
2009-10-27 02:15:51 +01:00
parent 164d32c079
commit e43ea18d29
6 changed files with 46 additions and 1 deletions

View File

@@ -521,11 +521,16 @@ void ReadConfiguration(ncmpcpp_config &conf)
conf.mpd_music_dir = v + "/";
}
}
if (cl.find("visualizer_fifo_path") != std::string::npos)
else if (cl.find("visualizer_fifo_path") != std::string::npos)
{
if (!v.empty())
conf.visualizer_fifo_path = v;
}
else if (cl.find("visualizer_output_name") != std::string::npos)
{
if (!v.empty())
conf.visualizer_output_name = v;
}
else if (cl.find("mpd_port") != std::string::npos)
{
if (StrToInt(v))