Switch to unified view

a/upmpd/mpdcli.cxx b/upmpd/mpdcli.cxx
...
...
84
        LOGERR("MPDCli::showError: bad state" << endl);
84
        LOGERR("MPDCli::showError: bad state" << endl);
85
        return false;
85
        return false;
86
    }
86
    }
87
87
88
    int error = mpd_connection_get_error(M_CONN);
88
    int error = mpd_connection_get_error(M_CONN);
89
    if (error == MPD_ERROR_SUCCESS)
89
    if (error == MPD_ERROR_SUCCESS) {
90
        //LOGDEB("MPDCli::showError: " << who << " success !" << endl;);
90
        return false;
91
        return false;
92
    }
91
    LOGERR(who << " failed: " <<  mpd_connection_get_error_message(M_CONN) 
93
    LOGERR(who << " failed: " <<  mpd_connection_get_error_message(M_CONN) 
92
           << endl);
94
           << endl);
93
    if (error == MPD_ERROR_SERVER) {
95
    if (error == MPD_ERROR_SERVER) {
94
        LOGERR(who << " server error: " << 
96
        LOGERR(who << " server error: " << 
95
               mpd_connection_get_server_error(M_CONN) << endl);
97
               mpd_connection_get_server_error(M_CONN) << endl);
...
...
120
    mpd_status *mpds = 0;
122
    mpd_status *mpds = 0;
121
    mpds = mpd_run_status(M_CONN);
123
    mpds = mpd_run_status(M_CONN);
122
    if (mpds == 0) {
124
    if (mpds == 0) {
123
        openconn();
125
        openconn();
124
        mpds = mpd_run_status(M_CONN);
126
        mpds = mpd_run_status(M_CONN);
127
        if (mpds == 0) {
125
        LOGERR("MPDCli::updStatus: can't get status" << endl);
128
            LOGERR("MPDCli::updStatus: can't get status" << endl);
129
            showError("MPDCli::updStatus");
130
        }
126
        return false;
131
        return false;
127
    }
132
    }
128
133
129
    m_stat.volume = mpd_status_get_volume(mpds);
134
    m_stat.volume = mpd_status_get_volume(mpds);
130
    m_stat.rept = mpd_status_get_repeat(mpds);
135
    m_stat.rept = mpd_status_get_repeat(mpds);