diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 17:28:10 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2013-04-07 17:29:32 +0200 |
commit | 2184fb7c7393ef2d8e3e3ccbc020d7d0025703e4 (patch) | |
tree | e6c9dcc87f5aa482c11462d284507db320de8f84 /src/mpdpp.cpp | |
parent | d451731562f3772fa52b34222c06d32cafbec35f (diff) |
get rid of global mpd status object
Diffstat (limited to 'src/mpdpp.cpp')
-rw-r--r-- | src/mpdpp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index 67de2a1c..e0273f1b 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -28,7 +28,6 @@ #include "mpdpp.h" MPD::Connection Mpd; -MPD::Status MpdStatus; namespace MPD {// @@ -399,10 +398,10 @@ void Connection::Swap(unsigned from, unsigned to) } } -void Connection::Seek(unsigned where) +void Connection::Seek(unsigned pos, unsigned where) { prechecksNoCommandsList(); - mpd_run_seek_pos(m_connection, MpdStatus.currentSongPosition(), where); + mpd_run_seek_pos(m_connection, pos, where); checkErrors(); } |