X-Git-Url: http://git.code-monkey.de/?p=ruby-vorbistagger.git;a=blobdiff_plain;f=ext%2Fext.c;h=9c433f285523c12196501363e132a8662f9907e5;hp=6c640b720e1ec9cf6971eb0c3d76ca8afbc43bd3;hb=bf1f7624bee5a466b402825083190d3afbd9c28b;hpb=1269dc936cc13b7c021e477ad110308759f275cf diff --git a/ext/ext.c b/ext/ext.c index 6c640b7..9c433f2 100644 --- a/ext/ext.c +++ b/ext/ext.c @@ -103,6 +103,10 @@ c_init (VALUE self, VALUE filename) rb_raise (eVTError, "vcedit_new_state() failed - %s", vcedit_error (o->state)); + if (vcedit_open (o->state) < 0) + rb_raise (eVTError, "vcedit_open() failed - %s", + vcedit_error (o->state)); + vc = vcedit_comments (o->state); if (!vc) rb_raise (eVTError, "vcedit_comments() failed - %s",