|
a/src/ohradio.cxx |
|
b/src/ohradio.cxx |
|
... |
|
... |
130 |
bool OHRadio::readRadios()
|
130 |
bool OHRadio::readRadios()
|
131 |
{
|
131 |
{
|
132 |
// Id 0 means no selection
|
132 |
// Id 0 means no selection
|
133 |
o_radios.push_back(RadioMeta("Unknown radio", "", ""));
|
133 |
o_radios.push_back(RadioMeta("Unknown radio", "", ""));
|
134 |
|
134 |
|
135 |
UPnPP::PTMutexLocker conflock(g_configlock);
|
135 |
std::unique_lock<std::mutex>(g_configlock);
|
136 |
getRadiosFromConf(g_config);
|
136 |
getRadiosFromConf(g_config);
|
137 |
// Also if radiolist is defined, get from there
|
137 |
// Also if radiolist is defined, get from there
|
138 |
string radiolistfn;
|
138 |
string radiolistfn;
|
139 |
if (g_config->get("radiolist", radiolistfn)) {
|
139 |
if (g_config->get("radiolist", radiolistfn)) {
|
140 |
ConfSimple rdconf(radiolistfn.c_str(), 1);
|
140 |
ConfSimple rdconf(radiolistfn.c_str(), 1);
|