get rid of global mpd status object

This commit is contained in:
Andrzej Rybczak
2013-04-07 17:28:10 +02:00
parent d451731562
commit 2184fb7c73
11 changed files with 321 additions and 209 deletions

View File

@@ -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();
}