search for: process_vorbis_passthru_pag

Displaying 2 results from an estimated 2 matches for "process_vorbis_passthru_pag".

2007 Mar 15
2
Logging album info for ogg-vorbis
Hi, i just joined the list. I was wondering if anyone would be interested in a change to icecast that logs album info as well as ARTST and TRACK. I have made the changes to the source code and it's working fine. If there is any interest, I could look into making it an addition to the code. Let me know. thanks, -- Aaron -------------- next part -------------- An HTML attachment was
2007 Mar 26
0
Logging album info for ogg-vorbis
...vorbis_codec_t *source_vorbis = codec->specific; char *comment; + int i; + if (ogg_stream_pagein (&codec->os, page) < 0) { ogg_info->error = 1; @@ -565,6 +567,21 @@ format_ogg_attach_header (ogg_info, page); codec->process_page = process_vorbis_passthru_page; } + + //free previous comment fields + for(i=0; i < ogg_info->metadata_count; ++i) + free(ogg_info->metadata[i]); + free(ogg_info->metadata); + + ogg_info->metadata = calloc(source_vorbis->vc.comments,sizeof(char*)); + + //copy all comment fields +...