flag unsupported descriptor types

This commit is contained in:
hummypkg 2011-06-02 15:25:00 +00:00 committed by HummyPkg
parent bec117e601
commit 36888b42b5
2 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,11 @@ read_descriptor(struct epg *epg, struct descriptor *d)
break;
default:
printf("Default descriptor: %d\n", d->tag);
case DS_LINKAGE:
case DS_CONTENT:
case DS_PRIVATE_DATA_SPECIFIER:
case DS_FTA_CONTENT_MGMT:
d->content.unknown.text = string_to_end(epg, d, 0,
&d->content.unknown.textlen);
break;

2
main.c
View File

@ -70,8 +70,10 @@ main(int argc, char **argv)
ds = read_descriptor_header(epg);
read_descriptor(epg, ds);
/*
if (ds->tag == DS_CONTENT_IDENTIFIER)
dump_descriptor(ds, 1);
*/
free_descriptor(ds);
}