Reworked Ogg::Vorbis::Comments' vorbis_comment interface.
[ruby-vorbistagger.git] / ext / ext.c
index eed0e6582b2f679f98b48a39da38b427b98f9ab1..da2798f579495d9bdf81f0f2a8f84876335b3607 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -71,7 +71,6 @@ c_mark (RbVorbisTagger *o)
 {
        rb_gc_mark (o->io);
        rb_gc_mark (o->comments);
-       rb_gc_mark (io_buf);
 }
 
 static void
@@ -216,7 +215,7 @@ c_write (VALUE self)
 
        Data_Get_Struct (self, RbVorbisTagger, o);
 
-       comments_sync (o->comments);
+       comments_sync (o->comments, o->state);
 
        /* seek back to BOF */
        rb_funcall (o->io, id_seek, 1, INT2FIX (0));