Reworked Ogg::Vorbis::Comments' vorbis_comment interface.
[ruby-vorbistagger.git] / ext / ext.c
index 99eefbe9ba5ef6ff6684e45c97a7aea6b5c5790e..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));
@@ -277,6 +276,6 @@ Init_vorbistagger_ext (void)
 
        cComments = Init_Comments (mVorbis);
 
-       io_buf = rb_str_buf_new (BUFSIZ);
+       io_buf = rb_str_buf_new (0);
        rb_global_variable (&io_buf);
 }