diff --git a/src/player_command.c b/src/player_command.c
index 3161792dc1ff7f9d265f3509318395af263a081d..f2353f7cf695646bf5dae66ac167674fb03884bf 100644 (file)
--- a/src/player_command.c
+++ b/src/player_command.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
* Project homepage: http://musicpd.org
*
* This program is free software; you can redistribute it and/or modify
#include "options.h"
#include "i18n.h"
#include "screen_client.h"
-#include "screen_message.h"
+#include "screen_status.h"
int seek_id = -1;
int seek_target_time;
static void
commit_seek(struct mpdclient *c)
{
- struct mpd_connection *connection;
-
if (seek_id < 0)
return;
- connection = mpdclient_get_connection(c);
+ struct mpd_connection *connection = mpdclient_get_connection(c);
if (connection == NULL) {
seek_id = -1;
return;
bool
handle_player_command(struct mpdclient *c, command_t cmd)
{
- struct mpd_connection *connection;
-
if (!mpdclient_is_connected(c) || c->status == NULL)
return false;
cancel_seek_timer();
switch(cmd) {
+ struct mpd_connection *connection;
+
/*
case CMD_PLAY:
mpdclient_cmd_play(c, MPD_PLAY_AT_BEGINNING);
break;
if (mpd_run_shuffle(connection))
- screen_status_message(_("Shuffled playlist"));
+ screen_status_message(_("Shuffled queue"));
else
mpdclient_handle_error(c);
break;
break;
if (mpdclient_cmd_clear(c))
- screen_status_message(_("Cleared playlist"));
+ screen_status_message(_("Cleared queue"));
break;
case CMD_REPEAT:
connection = mpdclient_get_connection(c);