Mercurial > pt1
comparison recpt1/recpt1core.c @ 141:c8688d7d6382
fix for the problem that an indefinite recording quits immediately.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 01 Oct 2013 16:36:12 +0900 |
parents | c9b1d21c5035 |
children | 5e4290a4cd01 |
comparison
equal
deleted
inserted
replaced
140:c9b1d21c5035 | 141:c8688d7d6382 |
---|---|
295 parse_time(char *rectimestr, int *recsec) | 295 parse_time(char *rectimestr, int *recsec) |
296 { | 296 { |
297 /* indefinite */ | 297 /* indefinite */ |
298 if(!strcmp("-", rectimestr)) { | 298 if(!strcmp("-", rectimestr)) { |
299 *recsec = -1; | 299 *recsec = -1; |
300 return 0; | |
300 } | 301 } |
301 /* colon */ | 302 /* colon */ |
302 else if(strchr(rectimestr, ':')) { | 303 else if(strchr(rectimestr, ':')) { |
303 int n1, n2, n3; | 304 int n1, n2, n3; |
304 if(sscanf(rectimestr, "%d:%d:%d", &n1, &n2, &n3) == 3) | 305 if(sscanf(rectimestr, "%d:%d:%d", &n1, &n2, &n3) == 3) |