comparison recpt1/recpt1.c @ 100:aeba1988234f

support macros to specify sid: - macros: hd, sd1, sd2, sd3, 1seg and all are supported. - if sid has been specified but no suitable sid found, fall back to "all". technical summary: - use splitter structure as the argument where it is applicable. - add tab configuration to some source files.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 13 Feb 2010 19:43:25 +0900
parents 3a3f15b063e1
children 387d18563ef8
comparison
equal deleted inserted replaced
99:3a3f15b063e1 100:aeba1988234f
1 /* -*- tab-width: 4; indent-tabs-mode: nil -*- */
1 #include <stdio.h> 2 #include <stdio.h>
2 #include <fcntl.h> 3 #include <fcntl.h>
3 #include <sys/types.h> 4 #include <sys/types.h>
4 #include <sys/stat.h> 5 #include <sys/stat.h>
5 #include <time.h> 6 #include <time.h>
1048 { 1049 {
1049 splitter = split_startup(sid_list); 1050 splitter = split_startup(sid_list);
1050 if ( splitter->sid_list == NULL ) 1051 if ( splitter->sid_list == NULL )
1051 { 1052 {
1052 fprintf(stderr, "Cannot start TS splitter\n"); 1053 fprintf(stderr, "Cannot start TS splitter\n");
1053 return(1); 1054 return 1;
1054 } 1055 }
1055 } 1056 }
1056 1057
1057 /* initialize udp connection */ 1058 /* initialize udp connection */
1058 if(use_udp) { 1059 if(use_udp) {