summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b9684f)
raw | patch | inline | side by side (parent: 3b9684f)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 14 Apr 2004 19:34:28 +0000 (19:34 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 14 Apr 2004 19:34:28 +0000 (19:34 +0000) |
screen_play.c | patch | blob | history |
diff --git a/screen_play.c b/screen_play.c
index c9fd248ebea50f172bf432d1530099413164582a..95c2899fe0547d9687507d89c894001e8eab8bbe 100644 (file)
--- a/screen_play.c
+++ b/screen_play.c
#include "screen_file.h"
#include "screen_play.h"
-
#define BUFSIZE 256
static char *
return NULL;
}
- if( IS_PLAYING(c->status->state) && index==c->song_id )
+ if( index==c->song_id && !IS_STOPPED(c->status->state) )
{
*highlight = 1;
}
int length = c->playlist_length;
int offset = lw->selected-lw->start;
- if( !lw || length<lw->rows || !IS_PLAYING(c->status->state) )
+ if( !lw || length<lw->rows || IS_STOPPED(c->status->state) )
return 0;
/* try to center the song that are playing */
file_clear_highlight(c, song);
mpd_sendDeleteCommand(c->connection, screen->playlist->selected);
mpd_finishCommand(c->connection);
- screen_status_printf("Removed \'%s\' from playlist!",
- mpc_get_song_name(song));
+ if( !mpc_error(c) )
+ {
+ screen_status_printf("Removed \'%s\' from playlist!",
+ mpc_get_song_name(song));
+
+ }
}
return 1;
case CMD_SAVE_PLAYLIST: