Switch to unified view
a/upmpd/mpdcli.cxx | b/upmpd/mpdcli.cxx | ||
---|---|---|---|
... |
... |
||
26 | using namespace std; |
26 | using namespace std; |
27 | 27 | ||
28 | #define M_CONN ((struct mpd_connection *)m_conn) |
28 | #define M_CONN ((struct mpd_connection *)m_conn) |
29 | 29 | ||
30 | MPDCli::MPDCli(const string& host, int port, const string& pass) |
30 | MPDCli::MPDCli(const string& host, int port, const string& pass) |
31 | : m_conn(0), m_premutevolume(0), m_cachedvolume(50), |
31 | : m_conn(0), m_ok(false), m_premutevolume(0), m_cachedvolume(50),
|
32 | m_host(host), m_port(port), m_password(pass) |
32 | m_host(host), m_port(port), m_password(pass) |
33 | { |
33 | { |
34 | if (!openconn()) { |
34 | if (!openconn()) { |
35 | return; |
35 | return; |
36 | } |
36 | } |