decoder-ogg.c
branchtrunk
changeset 34 afc13760179b
parent 33 65ed49cbc08b
equal deleted inserted replaced
33:65ed49cbc08b 34:afc13760179b
   160   vorbis_comment *vc=ov_comment(&file->vf,-1);
   160   vorbis_comment *vc=ov_comment(&file->vf,-1);
   161   if(vc) {
   161   if(vc) {
   162     for(int i=0 ; i<vc->comments ; i++) {
   162     for(int i=0 ; i<vc->comments ; i++) {
   163       const char *cc=vc->user_comments[i];
   163       const char *cc=vc->user_comments[i];
   164       d(printf("ogg: comment%d='%s'\n",i,cc))
   164       d(printf("ogg: comment%d='%s'\n",i,cc))
   165       char *p=strchr(cc,'=');
   165       const char *p=strchr(cc,'=');
   166       if(p) {
   166       if(p) {
   167         const int len=p-cc;
   167         const int len=p-cc;
   168         p++;
   168         p++;
   169         if(!strncasecmp(cc,"TITLE",len)) {
   169         if(!strncasecmp(cc,"TITLE",len)) {
   170           if(!Title) Title=strdup(p);
   170           if(!Title) Title=strdup(p);