Switch to unified view

a/src/mpdcli.cxx b/src/mpdcli.cxx
...
...
609
    RETRY_CMD(mpd_run_stop(M_CONN));
609
    RETRY_CMD(mpd_run_stop(M_CONN));
610
    return true;
610
    return true;
611
}
611
}
612
bool MPDCli::seek(int seconds)
612
bool MPDCli::seek(int seconds)
613
{
613
{
614
    if (!updStatus())
614
    if (!updStatus() || m_stat.songpos < 0)
615
        return -1;
615
        return false;
616
    LOGDEB("MPDCli::seek: pos:"<<m_stat.songpos<<" seconds: "<< seconds<<endl);
616
    LOGDEB("MPDCli::seek: pos:"<<m_stat.songpos<<" seconds: "<< seconds<<endl);
617
    RETRY_CMD(mpd_run_seek_pos(M_CONN, m_stat.songpos, (unsigned int)seconds));
617
    RETRY_CMD(mpd_run_seek_pos(M_CONN, m_stat.songpos, (unsigned int)seconds));
618
    return true;
618
    return true;
619
}
619
}
620
620