From ddd7adff6d0e02c31b371559cd822f3b5feba345 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Tue, 15 Jun 2004 13:17:22 +0000 Subject: git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1497 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/screen.c') 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) ) -- cgit v1.2.3