aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-15 13:17:22 +0000
committerKalle Wallin <kaw@linux.se>2004-06-15 13:17:22 +0000
commitddd7adff6d0e02c31b371559cd822f3b5feba345 (patch)
treef7c0703e7ee740ce2454cdff6f0249c8d862decd /src/screen.c
parenta8baf3be0cbdb33d48df4e704ca2f1cb0b77f93b (diff)
downloadmpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.tar.gz
mpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.tar.xz
mpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.zip
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1497 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 76d04fa22..8beab97f2 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -264,7 +264,7 @@ paint_status_window(mpdclient_t *c)
{
if( status->totalTime > 0 )
{
- if( seek_id == c->song->id )
+ if( c->song && seek_id == c->song->id )
elapsedTime = seek_target_time;
snprintf(screen->buf, screen->buf_size,
" [%i:%02i/%i:%02i]",
@@ -736,8 +736,10 @@ screen_cmd(mpdclient_t *c, command_t cmd)
seek_target_time++;
if( seek_target_time < c->status->totalTime )
break;
- seek_target_time=0;
+ seek_target_time = c->status->totalTime;
+ /* seek_target_time=0; */
}
+ break;
/* fall through... */
case CMD_TRACK_NEXT:
if( !IS_STOPPED(c->status->state) )