Mercurial > pt1.oyama
comparison src/tssplitter_lite.c @ 152:30e91361506a
EXPERIMENTAL: Enable change phisical channel by DLNA.(ISDB-T only)
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sun, 02 Sep 2012 01:59:27 +0900 |
parents | a9f60d56d673 |
children | 7d8a5bb874ad |
comparison
equal
deleted
inserted
replaced
151:f7f594bf4e98 | 152:30e91361506a |
---|---|
734 } | 734 } |
735 } | 735 } |
736 | 736 |
737 /* print SIDs */ | 737 /* print SIDs */ |
738 fprintf(stderr, "Available sid = "); | 738 fprintf(stderr, "Available sid = "); |
739 for(k=0; k < sp->num_pmts; k++) { | 739 for(k=0; k < sp->num_pmts; k++) |
740 fprintf(stderr, "%d ", avail_sids[k]); | 740 fprintf(stderr, "%d ", avail_sids[k]); |
741 /* ut->channel_name にSID番号を入れる | |
742 * ushare 側(TV表示上)には channel_name を表示させる | |
743 * TODO 局名も含めて入れたいなぁ | |
744 */ | |
745 if(!strcmp("all", sp->sid_list[0])) { | |
746 #define CHANNEL_NAME_LENGTH (64) | |
747 ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); | |
748 if(!ut->channel_name[ut->nr_channel]) | |
749 return TSS_NULL; | |
750 snprintf(ut->channel_name[ut->nr_channel], | |
751 CHANNEL_NAME_LENGTH, | |
752 "%d.ts", | |
753 avail_sids[k]); | |
754 ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); | |
755 if(!ut->location_name[ut->nr_channel]) | |
756 return TSS_NULL; | |
757 snprintf(ut->location_name[ut->nr_channel], | |
758 CHANNEL_NAME_LENGTH, | |
759 VIRTUAL_DIR "/%d.ts", | |
760 avail_sids[k]); | |
761 ut->nr_channel += 1; | |
762 } | |
763 } | |
764 // metadata list を作り直す | |
765 free_metadata_list(ut); | |
766 build_metadata_list(ut); | |
767 fprintf(stderr, "\n"); | 741 fprintf(stderr, "\n"); |
768 fprintf(stderr, "Chosen sid =%s\n", chosen_sid); | 742 fprintf(stderr, "Chosen sid =%s\n", chosen_sid); |
769 | 743 |
770 #if 0 | 744 #if 0 |
771 /* print PMTs */ | 745 /* print PMTs */ |