Switch to unified view

a/src/mpdcli.cxx b/src/mpdcli.cxx
...
...
666
        return false;
666
        return false;
667
    RETRY_CMD(mpd_run_single(M_CONN, on));
667
    RETRY_CMD(mpd_run_single(M_CONN, on));
668
    return true;
668
    return true;
669
}
669
}
670
670
671
bool MPDCli::send_tag(const char *cid, int tag, const string& data)
671
bool MPDCli::send_tag(const char *cid, int tag, const string& _data)
672
{
672
{
673
    string data;
674
    neutchars(_data, data, "\r\n", ' ');
673
    if (!mpd_send_command(M_CONN, "addtagid", cid, 
675
    if (!mpd_send_command(M_CONN, "addtagid", cid, 
674
                          mpd_tag_name(mpd_tag_type(tag)),
676
                          mpd_tag_name(mpd_tag_type(tag)),
675
                          data.c_str(), NULL)) {
677
                          data.c_str(), NULL)) {
676
        LOGERR("MPDCli::send_tag: mpd_send_command failed" << endl);
678
        LOGERR("MPDCli::send_tag: mpd_send_command failed" << endl);
677
        return false;
679
        return false;
678
    }
680
    }
679
681
680
    if (!mpd_response_finish(M_CONN)) {
682
    if (!mpd_response_finish(M_CONN)) {
681
        LOGERR("MPDCli::send_tag: mpd_response_finish failed\n");
683
        LOGERR("MPDCli::send_tag: mpd_response_finish failed for tag " << tag <<
684
               " data [" << data << "]\n");
682
        showError("MPDCli::send_tag");
685
        showError("MPDCli::send_tag");
683
        return false;
686
        return false;
684
    }
687
    }
685
    return true;
688
    return true;
686
}
689
}