diff options
author | waker <wakeroid@gmail.com> | 2009-08-09 18:05:53 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-09 18:05:53 +0200 |
commit | b8d8c455dfeaac3e932473e235322c8305e1bd5d (patch) | |
tree | b743a300c9340f3726a04a56065afe8c5a89f5f7 /cvorbis.c | |
parent | 00352140d7359235a1f9763aca7dad0e2f2bc460 (diff) |
fixed unfortunate typo in playlist conventions (ps_ -> pl_)
fixed id3v2 reader to support unsync flag
fixed seeking
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -139,27 +139,27 @@ cvorbis_insert (playItem_t *after, const char *fname) { int title_added = 0; vorbis_comment *vc = ov_comment (&vorbis_file, -1); if (vc) { - ps_add_meta (it, "vendor", vc->vendor); + pl_add_meta (it, "vendor", vc->vendor); for (int i = 0; i < vc->comments; i++) { if (!strncmp (vc->user_comments[i], "artist=", 7)) { - ps_add_meta (it, "artist", vc->user_comments[i] + 7); + pl_add_meta (it, "artist", vc->user_comments[i] + 7); } else if (!strncmp (vc->user_comments[i], "title=", 6)) { - ps_add_meta (it, "title", vc->user_comments[i] + 6); + pl_add_meta (it, "title", vc->user_comments[i] + 6); title_added = 1; } else if (!strncmp (vc->user_comments[i], "date=", 5)) { - ps_add_meta (it, "date", vc->user_comments[i] + 5); + pl_add_meta (it, "date", vc->user_comments[i] + 5); } } } it->filetype = "OggVorbis"; it->duration = ov_seekable (&vorbis_file) ? ov_time_total (&vorbis_file, -1) : -1; if (!title_added) { - ps_add_meta (it, "title", NULL); + pl_add_meta (it, "title", NULL); } ov_clear (&vorbis_file); - after = ps_insert_item (after, it); + after = pl_insert_item (after, it); return after; } |