|
a/src/avtransport.cxx |
|
b/src/avtransport.cxx |
|
... |
|
... |
156 |
return "AVTRansport Unknown Error";
|
156 |
return "AVTRansport Unknown Error";
|
157 |
}
|
157 |
}
|
158 |
}
|
158 |
}
|
159 |
|
159 |
|
160 |
// Translate MPD mode flags to UPnP Play mode
|
160 |
// Translate MPD mode flags to UPnP Play mode
|
|
|
161 |
//
|
|
|
162 |
// This is only meaningful if the CP is only observing the renderer
|
|
|
163 |
// state (e.g. if the renderer is controlled through OHPlaylist). We
|
|
|
164 |
// always reset the modes to false in setAvTransport.
|
|
|
165 |
//
|
|
|
166 |
// Actually, I think that these commands were meant for multi-track
|
|
|
167 |
// players (e.g. CD)
|
161 |
static string mpdsToPlaymode(const MpdStatus& mpds)
|
168 |
static string mpdsToPlaymode(const MpdStatus& mpds)
|
162 |
{
|
169 |
{
|
163 |
string playmode = "NORMAL";
|
170 |
string playmode = "NORMAL";
|
164 |
if (!mpds.rept && mpds.random && !mpds.single)
|
171 |
if (!mpds.rept && mpds.random && !mpds.single)
|
165 |
playmode = "SHUFFLE";
|
172 |
playmode = "SHUFFLE";
|
|
... |
|
... |
426 |
// mpc or ohplaylist use (there are many others of course).
|
433 |
// mpc or ohplaylist use (there are many others of course).
|
427 |
m_dev->m_mpdcli->repeat(false);
|
434 |
m_dev->m_mpdcli->repeat(false);
|
428 |
m_dev->m_mpdcli->random(false);
|
435 |
m_dev->m_mpdcli->random(false);
|
429 |
// See comment about single in init
|
436 |
// See comment about single in init
|
430 |
m_dev->m_mpdcli->single(false);
|
437 |
m_dev->m_mpdcli->single(false);
|
|
|
438 |
m_dev->m_mpdcli->consume(false);
|
431 |
|
439 |
|
432 |
// curpos == -1 means that the playlist was cleared or we just started. A
|
440 |
// curpos == -1 means that the playlist was cleared or we just started. A
|
433 |
// play will use position 0, so it's actually equivalent to curpos == 0
|
441 |
// play will use position 0, so it's actually equivalent to curpos == 0
|
434 |
if (curpos == -1) {
|
442 |
if (curpos == -1) {
|
435 |
curpos = 0;
|
443 |
curpos = 0;
|