[prev in list] [next in list] [prev in thread] [next in thread]
List: vorbis-dev
Subject: [Vorbis-dev] Delete / replace comments?
From: "David M. Cotter" <dave () kjams ! com>
Date: 2007-01-30 5:21:42
Message-ID: E9D6D9FC-41A2-4D59-86B6-E01C28E2FEE1 () kjams ! com
[Download RAW message or body]
I've tried for a while now to delete and/or replace some comments in
a file.
I'm using the vcedit.c code
here's what I try:
// open the file and get access to comments
vcedit_open(i_vcStateP, i_fileP);
i_commentsP = vcedit_comments(i_vcStateP);
// now delete all existing comments
vorbis_comment_clear(i_commentsP);
vorbis_comment_init(i_commentsP);
// now in here add some new comments
vorbis_comment_add_tag(
i_commentsP,
const_cast<char *>(Key_CommonToCustom(common)),
const_cast<char *>(str.utf8Z()));
// now update the changes
vcedit_write(i_vcStateP, i_fileP);
vcedit_clear(i_vcStateP);
however, all this seems to do is APPEND comments, rather that delete
and create new ones.
how the heck do I delete the old comments??
_______________________________________________
Vorbis-dev mailing list
Vorbis-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/vorbis-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic