From ae0a665504408c7ccc8f0de4e12dff0746928b2f Mon Sep 17 00:00:00 2001 From: unK Date: Sat, 18 Oct 2008 22:44:04 +0200 Subject: [PATCH] add 'stop' to list of supported mpc commands --- src/helpers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/helpers.cpp b/src/helpers.cpp index 28019002..485e4f94 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -101,6 +101,7 @@ bool ParseArgv(vector &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 [+-] adjusts volume by [+-]\n" @@ -126,6 +127,11 @@ bool ParseArgv(vector &v) Mpd->Execute("pause\n"); exit = 1; } + else if (*it == "stop") + { + Mpd->Stop(); + exit = 1; + } else if (*it == "next") { Mpd->Next();