- state->vc = malloc (sizeof (vorbis_comment));
- vorbis_comment_init (state->vc);
-
- if (ogg_stream_pagein (state->os, &og) < 0) {
- state->lasterror = "Error reading first page of Ogg bitstream.";
+ if (ogg_stream_pagein (&state->os, &og) < 0) {
+ ret = VCEDIT_ERR_INVAL;