summaryrefslogtreecommitdiff
path: root/src/mpdpp.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2013-04-07 17:28:10 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2013-04-07 17:29:32 +0200
commit2184fb7c7393ef2d8e3e3ccbc020d7d0025703e4 (patch)
treee6c9dcc87f5aa482c11462d284507db320de8f84 /src/mpdpp.cpp
parentd451731562f3772fa52b34222c06d32cafbec35f (diff)
get rid of global mpd status object
Diffstat (limited to 'src/mpdpp.cpp')
-rw-r--r--src/mpdpp.cpp5
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();
}