projects
/
ruby-vorbistagger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separated vcedit_state_new() and vcedit_open() again.
[ruby-vorbistagger.git]
/
ext
/
ext.c
diff --git
a/ext/ext.c
b/ext/ext.c
index 6c640b720e1ec9cf6971eb0c3d76ca8afbc43bd3..9c433f285523c12196501363e132a8662f9907e5 100644
(file)
--- 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));
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",
vc = vcedit_comments (o->state);
if (!vc)
rb_raise (eVTError, "vcedit_comments() failed - %s",