Mercurial > pt1.oyama
comparison src/tssplitter_lite.c @ 149:a9f60d56d673
Fix DLNA problem
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sat, 25 Aug 2012 11:10:24 +0900 |
parents | 066f33b2213a |
children | 30e91361506a |
comparison
equal
deleted
inserted
replaced
148:da6ea0ef68ff | 149:a9f60d56d673 |
---|---|
740 fprintf(stderr, "%d ", avail_sids[k]); | 740 fprintf(stderr, "%d ", avail_sids[k]); |
741 /* ut->channel_name にSID番号を入れる | 741 /* ut->channel_name にSID番号を入れる |
742 * ushare 側(TV表示上)には channel_name を表示させる | 742 * ushare 側(TV表示上)には channel_name を表示させる |
743 * TODO 局名も含めて入れたいなぁ | 743 * TODO 局名も含めて入れたいなぁ |
744 */ | 744 */ |
745 if(!strcmp("all", sp->sid_list[0])) { | |
745 #define CHANNEL_NAME_LENGTH (64) | 746 #define CHANNEL_NAME_LENGTH (64) |
746 ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); | 747 ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); |
747 if(!ut->channel_name[ut->nr_channel]) | 748 if(!ut->channel_name[ut->nr_channel]) |
748 return TSS_NULL; | 749 return TSS_NULL; |
749 snprintf(ut->channel_name[ut->nr_channel], | 750 snprintf(ut->channel_name[ut->nr_channel], |
750 CHANNEL_NAME_LENGTH, | 751 CHANNEL_NAME_LENGTH, |
751 "%d.ts", | 752 "%d.ts", |
752 avail_sids[k]); | 753 avail_sids[k]); |
753 ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); | 754 ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); |
754 if(!ut->location_name[ut->nr_channel]) | 755 if(!ut->location_name[ut->nr_channel]) |
755 return TSS_NULL; | 756 return TSS_NULL; |
756 snprintf(ut->location_name[ut->nr_channel], | 757 snprintf(ut->location_name[ut->nr_channel], |
757 CHANNEL_NAME_LENGTH, | 758 CHANNEL_NAME_LENGTH, |
758 VIRTUAL_DIR "/%d.ts", | 759 VIRTUAL_DIR "/%d.ts", |
759 avail_sids[k]); | 760 avail_sids[k]); |
760 ut->nr_channel += 1; | 761 ut->nr_channel += 1; |
762 } | |
761 } | 763 } |
762 // metadata list を作り直す | 764 // metadata list を作り直す |
763 free_metadata_list(ut); | 765 free_metadata_list(ut); |
764 build_metadata_list(ut); | 766 build_metadata_list(ut); |
765 fprintf(stderr, "\n"); | 767 fprintf(stderr, "\n"); |