comparison recpt1/recpt1.c @ 105:0a9406f92f32

need not to unset use_splitter flag on fall back.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 26 Feb 2010 22:58:59 +0900
parents afd25d9ebef6
children d89f0da0a7e4
comparison
equal deleted inserted replaced
104:afd25d9ebef6 105:0a9406f92f32
336 if(use_b25) { 336 if(use_b25) {
337 code = b25_decode(dec, &sbuf, &dbuf); 337 code = b25_decode(dec, &sbuf, &dbuf);
338 if(code < 0) { 338 if(code < 0) {
339 fprintf(stderr, "b25_decode failed (code=%d). fall back to encrypted recording.\n", code); 339 fprintf(stderr, "b25_decode failed (code=%d). fall back to encrypted recording.\n", code);
340 use_b25 = FALSE; 340 use_b25 = FALSE;
341 use_splitter = FALSE; /* should not split when decode failed */
342 } 341 }
343 else 342 else
344 buf = dbuf; 343 buf = dbuf;
345 } 344 }
346 345
1041 dec = b25_startup(&dopt); 1040 dec = b25_startup(&dopt);
1042 if(!dec) { 1041 if(!dec) {
1043 fprintf(stderr, "Cannot start b25 decoder\n"); 1042 fprintf(stderr, "Cannot start b25 decoder\n");
1044 fprintf(stderr, "Fall back to encrypted recording\n"); 1043 fprintf(stderr, "Fall back to encrypted recording\n");
1045 use_b25 = FALSE; 1044 use_b25 = FALSE;
1046 use_splitter = FALSE; /* should not split when decode failed */
1047 } 1045 }
1048 } 1046 }
1049 /* initialize splitter */ 1047 /* initialize splitter */
1050 if(use_splitter) { 1048 if(use_splitter) {
1051 splitter = split_startup(sid_list); 1049 splitter = split_startup(sid_list);