Reworked Ogg::Vorbis::Comments' vorbis_comment interface.
[ruby-vorbistagger.git] / ext / ext.c
index 583523e745863dde593e7956f9df23566ee8e84c..da2798f579495d9bdf81f0f2a8f84876335b3607 100644 (file)
--- a/ext/ext.c
+++ b/ext/ext.c
@@ -215,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));