Mercurial > pt1
comparison recpt1/recpt1.c @ 7:407af34cfbd9
now falls back to encrypted recording when b25 decoder is not available
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 17 Feb 2009 11:52:26 +0900 |
parents | d898fd27547f |
children | 6da603afd363 |
comparison
equal
deleted
inserted
replaced
6:d898fd27547f | 7:407af34cfbd9 |
---|---|
304 /* initialize decoder */ | 304 /* initialize decoder */ |
305 if(use_b25) { | 305 if(use_b25) { |
306 dec = b25_startup(&dopt); | 306 dec = b25_startup(&dopt); |
307 if(!dec) { | 307 if(!dec) { |
308 fprintf(stderr, "cannot start b25 decoder\n"); | 308 fprintf(stderr, "cannot start b25 decoder\n"); |
309 return 1; | 309 fprintf(stderr, "fall back to encrypted recording\n"); |
310 use_b25 = 0; | |
310 } | 311 } |
311 } | 312 } |
312 | 313 |
313 /* open output file */ | 314 /* open output file */ |
314 wfd = open(argv[optind + 2], (O_RDWR | O_CREAT | O_TRUNC), 0666); | 315 wfd = open(argv[optind + 2], (O_RDWR | O_CREAT | O_TRUNC), 0666); |