Mercurial > pt1.oyama
diff 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 |
line wrap: on
line diff
--- a/src/tssplitter_lite.c Fri Aug 31 23:39:46 2012 +0900 +++ b/src/tssplitter_lite.c Sun Sep 02 01:59:27 2012 +0900 @@ -736,34 +736,8 @@ /* print SIDs */ fprintf(stderr, "Available sid = "); - for(k=0; k < sp->num_pmts; k++) { + for(k=0; k < sp->num_pmts; k++) fprintf(stderr, "%d ", avail_sids[k]); - /* ut->channel_name にSID番号を入れる - * ushare 側(TV表示上)には channel_name を表示させる - * TODO 局名も含めて入れたいなぁ - */ - if(!strcmp("all", sp->sid_list[0])) { -#define CHANNEL_NAME_LENGTH (64) - ut->channel_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); - if(!ut->channel_name[ut->nr_channel]) - return TSS_NULL; - snprintf(ut->channel_name[ut->nr_channel], - CHANNEL_NAME_LENGTH, - "%d.ts", - avail_sids[k]); - ut->location_name[ut->nr_channel] = malloc(CHANNEL_NAME_LENGTH); - if(!ut->location_name[ut->nr_channel]) - return TSS_NULL; - snprintf(ut->location_name[ut->nr_channel], - CHANNEL_NAME_LENGTH, - VIRTUAL_DIR "/%d.ts", - avail_sids[k]); - ut->nr_channel += 1; - } - } - // metadata list を作り直す - free_metadata_list(ut); - build_metadata_list(ut); fprintf(stderr, "\n"); fprintf(stderr, "Chosen sid =%s\n", chosen_sid);