From: Andre Noll Date: Fri, 5 Sep 2014 23:20:55 +0000 (+0200) Subject: play: Fix next and prev on singular playlists. X-Git-Tag: v0.5.4~48^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=515f354dc706ad4eb209822c20ac63542a396887;hp=0160a4e41a7985ee17e1732ea5e18604001d5726 play: Fix next and prev on singular playlists. The next and prev commands do not reset the file position if the playlist consists of one file only. This fixes it. --- diff --git a/play.c b/play.c index 01125ab6..18bfab98 100644 --- a/play.c +++ b/play.c @@ -860,6 +860,7 @@ static int com_prev(struct play_task *pt, int argc, __a_unused char **argv) kill_stream(pt); pt->next_file = ret; pt->rq = CRT_FILE_CHANGE; + pt->start_chunk = 0; return 0; } @@ -875,6 +876,7 @@ static int com_next(struct play_task *pt, int argc, __a_unused char **argv) kill_stream(pt); pt->next_file = ret; pt->rq = CRT_FILE_CHANGE; + pt->start_chunk = 0; return 0; }