comparison recpt1/recpt1.c @ 104:afd25d9ebef6

output ECM packet so that former workaround is no longer needed.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 26 Feb 2010 22:55:44 +0900
parents 387d18563ef8
children 0a9406f92f32
comparison
equal deleted inserted replaced
103:387d18563ef8 104:afd25d9ebef6
343 else 343 else
344 buf = dbuf; 344 buf = dbuf;
345 } 345 }
346 346
347 347
348 if(use_b25 && use_splitter) { 348 if(use_splitter) {
349 splitbuf.size = 0; 349 splitbuf.size = 0;
350 350
351 while(buf.size) { 351 while(buf.size) {
352 /* $BJ,N%BP>](BPID$B$NCj=P(B */ 352 /* $BJ,N%BP>](BPID$B$NCj=P(B */
353 if(split_select_finish != TSS_SUCCESS) { 353 if(split_select_finish != TSS_SUCCESS) {
434 fprintf(stderr, "b25_finish failed\n"); 434 fprintf(stderr, "b25_finish failed\n");
435 else 435 else
436 buf = dbuf; 436 buf = dbuf;
437 } 437 }
438 438
439 if(use_b25 && use_splitter) { 439 if(use_splitter) {
440 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */ 440 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */
441 code = split_ts(splitter, &buf, &splitbuf); 441 code = split_ts(splitter, &buf, &splitbuf);
442 if(code != TSS_SUCCESS) { 442 if(code != TSS_SUCCESS) {
443 break; 443 break;
444 } 444 }
1046 use_splitter = FALSE; /* should not split when decode failed */ 1046 use_splitter = FALSE; /* should not split when decode failed */
1047 } 1047 }
1048 } 1048 }
1049 /* initialize splitter */ 1049 /* initialize splitter */
1050 if(use_splitter) { 1050 if(use_splitter) {
1051 if(!use_b25) { 1051 splitter = split_startup(sid_list);
1052 fprintf(stderr, "TS splitter does not work without b25 decoder currently.\n"); 1052 if(splitter->sid_list == NULL) {
1053 } 1053 fprintf(stderr, "Cannot start TS splitter\n");
1054 else { 1054 return 1;
1055 splitter = split_startup(sid_list);
1056 if(splitter->sid_list == NULL) {
1057 fprintf(stderr, "Cannot start TS splitter\n");
1058 return 1;
1059 }
1060 } 1055 }
1061 } 1056 }
1062 1057
1063 /* initialize udp connection */ 1058 /* initialize udp connection */
1064 if(use_udp) { 1059 if(use_udp) {