Read tags from Ogg Vorbis file and store them in the audio file handle. Definition at line 45 of file audio_format_vorbis.c. 00046 { 00047 OggVorbis_File *vfp = fd->drv_data; 00048 struct vorbis_comment *cmt; 00049 int i; 00050 const char *tag; 00051 00052 if ((cmt = ov_comment(vfp, -1)) == NULL) 00053 return; 00054 00055 for (i = 0; i < cmt->comments; i++) { 00056 tag = cmt->user_comments[i]; 00057 00058 if (g_ascii_strncasecmp(tag, "artist=", 7) == 0) 00059 fd->artist = g_strdup(tag + 7); 00060 else if (g_ascii_strncasecmp(tag, "title=", 6) == 0) 00061 fd->title = g_strdup(tag + 6); 00062 #ifdef BUILD_SCROBBLER 00063 else if (g_ascii_strncasecmp(tag, "album=", 6) == 0) 00064 fd->album = g_strdup(tag + 6); 00065 #endif /* BUILD_SCROBBLER */ 00066 } 00067 }
Here is the caller graph for this function:
![]() |
1.6.3