add 'stop' to list of supported mpc commands

This commit is contained in:
unK
2008-10-18 22:44:04 +02:00
parent 93b8a7dfff
commit ae0a665504

View File

@@ -101,6 +101,7 @@ bool ParseArgv(vector<string> &v)
<< " play start playing\n"
<< " pause pause the currently playing song\n"
<< " toggle toggle play/pause mode\n"
<< " stop stop playing\n"
<< " next play the next song\n"
<< " prev play the previous song\n"
<< " volume [+-]<num> adjusts volume by [+-]<num>\n"
@@ -126,6 +127,11 @@ bool ParseArgv(vector<string> &v)
Mpd->Execute("pause\n");
exit = 1;
}
else if (*it == "stop")
{
Mpd->Stop();
exit = 1;
}
else if (*it == "next")
{
Mpd->Next();