Switch to unified view

a/src/avtransport.cxx b/src/avtransport.cxx
...
...
91
91
92
    // This would make our life easier, but it's incompatible if
92
    // This would make our life easier, but it's incompatible if
93
    // ohplaylist is also in use, so refrain.
93
    // ohplaylist is also in use, so refrain.
94
//    dev->m_mpdcli->consume(true);
94
//    dev->m_mpdcli->consume(true);
95
#ifdef NO_SETNEXT
95
#ifdef NO_SETNEXT
96
    // If no setnext, fake stopping at each track
96
    // If no setnext, we'd like to fake stopping at each track but this does not work because mpd goes into PAUSED PLAY at the end of track, not STOP.
97
    m_dev->m_mpdcli->single(true);
97
//    m_dev->m_mpdcli->single(true);
98
#endif
98
#endif
99
}
99
}
100
100
101
// AVTransport Errors
101
// AVTransport Errors
102
enum AVTErrorCode {
102
enum AVTErrorCode {
...
...
419
    // end of the track. Note that always setting repeat to false is
419
    // end of the track. Note that always setting repeat to false is
420
    // one of the ways which we are incompatible with simultaneous
420
    // one of the ways which we are incompatible with simultaneous
421
    // mpc or ohplaylist use (there are many others of course).
421
    // mpc or ohplaylist use (there are many others of course).
422
    m_dev->m_mpdcli->repeat(false);
422
    m_dev->m_mpdcli->repeat(false);
423
    m_dev->m_mpdcli->random(false);
423
    m_dev->m_mpdcli->random(false);
424
#ifdef NO_SETNEXT
424
    // See comment about single in init
425
    m_dev->m_mpdcli->single(true);
425
    m_dev->m_mpdcli->single(false);
426
#endif
427
    
426
    
428
    // curpos == -1 means that the playlist was cleared or we just started. A
427
    // curpos == -1 means that the playlist was cleared or we just started. A
429
    // play will use position 0, so it's actually equivalent to curpos == 0
428
    // play will use position 0, so it's actually equivalent to curpos == 0
430
    if (curpos == -1) {
429
    if (curpos == -1) {
431
        curpos = 0;
430
        curpos = 0;