X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=play.c;h=55c9ec1bbb635946fe8ec92eadb52fa0accc8bf6;hp=6e6b91f93865dd3623592098c339a181be2dbb6d;hb=f60abbe18364a4368fd756f48c79af67d377fca7;hpb=b0a115ed731885c92fcd8b6fb1c89b97dca410e8 diff --git a/play.c b/play.c index 6e6b91f9..55c9ec1b 100644 --- a/play.c +++ b/play.c @@ -921,6 +921,8 @@ static int com_jmp(struct play_task *pt, int argc, char **argv) return ret; if (percent < 0 || percent > 100) return -ERRNO_TO_PARA_ERROR(EINVAL); + if (percent == 100) + return com_next(pt, 1, (char *[]){"next", NULL}); if (pt->playing && !pt->fn.btrn) return 0; pt->start_chunk = percent * pt->num_chunks / 100;