+ /* parse the vorbis comment */
+ {
+ input_thread_t *p_input = p_fifo->p_parent;
+ input_info_category_t *p_cat = input_InfoCategory( p_input,
+ "Vorbis Comment" );
+ int i = 0;
+ char *psz_name, *psz_value, *psz_comment;
+ while ( i < p_dec->vc.comments )
+ {
+ psz_comment = strdup( p_dec->vc.user_comments[i] );
+ psz_name = psz_comment;
+ psz_value = strchr( psz_comment, '=' );
+ *psz_value = '\0';
+ psz_value++;
+ input_AddInfo( p_cat, psz_name, psz_value );
+ free( psz_comment );
+ i++;
+ }
+ }
+