search for: vcedit_clear

Displaying 4 results from an estimated 4 matches for "vcedit_clear".

2004 Nov 22
1
Editing comments in Vorbis files...
...ot;rb")) == NULL) exit(0); if ((heym = fopen("OutFile.ogg", "wb")) == NULL) exit(0); state = vcedit_new_state(); if (vcedit_open(state, oggFile) < 0) { printf("erreur\n"); exit(0); } //vc = vcedit_comments(state); vcedit_write(state, heym); vcedit_clear(state); fclose(oggFile); fclose(heym); return 0; } Any idea?? Gabriel Lavoie
2007 Feb 07
1
how to delete all comments?
...ents(i_vcStateP); // now delete all existing comments vorbis_comment_clear(i_commentsP); <-- is this the correct way?? vorbis_comment_init(i_commentsP); <-- do i need to do this since it's already clear?? // now update the changes, is this correct?? vcedit_write(i_vcStateP, i_fileP); vcedit_clear(i_vcStateP); however, this does not delete the comments. here's what my file looks like AFTER running the above code: (non-ascii stuff deleted so you can see what's there) OggS vorbis OggS vorbis Xiph.Org libVorbis I 20020717 TITLE= ARTIST=Buddy Holly ALBUM=Unknown Album GENRE=Rock T...
2003 Aug 25
3
mem leak when writing ogg vorbis comments
...; } /* write out the modified stream */ if(vcedit_write(state, out) < 0) { // ... handle the failure case return FALSE; } if (in) { fclose (in); in = NULL;} if (out) { fclose (out); out = NULL; } vcedit_clear(state); state = NULL; // Try to rename the file to the old name if (rename(strTempFileInOldDir, szFilePath) != 0) { // ... handle the error case.. } delete [] buf; return TRUE; } Here's the VS mem leak: Dumping objec...
2001 Sep 30
3
UTF-8 stuff
...gc, char *argv[], param_t *param); @@ -98,7 +97,7 @@ /* extract and display the comments */ vc = vcedit_comments(state); - print_comments(param->com, vc, param->encoding); + print_comments(param->com, vc); /* done */ vcedit_clear(state); @@ -128,7 +127,7 @@ for(i=0; i < param->commentcount; i++) { - if(add_comment(param->comments[i], vc, param->encoding) < 0) + if(add_comment(param->comments[i], vc) < 0) fprintf(stderr, "Bad c...