|
a/src/mpdcli.cxx |
|
b/src/mpdcli.cxx |
|
... |
|
... |
329 |
LOGDEB1("MPDCli::setVolume" << endl);
|
329 |
LOGDEB1("MPDCli::setVolume" << endl);
|
330 |
if (!ok()) {
|
330 |
if (!ok()) {
|
331 |
return false;
|
331 |
return false;
|
332 |
}
|
332 |
}
|
333 |
|
333 |
|
334 |
// MPD does not want to set the volume if not active.
|
334 |
// ??MPD does not want to set the volume if not active.??
|
|
|
335 |
// This does not seem to be the case with recent MPD versions
|
335 |
if (!(m_stat.state == MpdStatus::MPDS_PLAY) &&
|
336 |
if (!(m_stat.state == MpdStatus::MPDS_PLAY) &&
|
336 |
!(m_stat.state == MpdStatus::MPDS_PAUSE)) {
|
337 |
!(m_stat.state == MpdStatus::MPDS_PAUSE)) {
|
337 |
LOGINF("MPDCli::setVolume: not active" << endl);
|
338 |
LOGINF("MPDCli::setVolume: not active" << endl);
|
338 |
return true;
|
339 |
return true;
|
339 |
}
|
340 |
}
|