Displaying 1 result from an estimated 1 matches for "py_ogg_stream".
2009 Feb 24
0
any help with pyogg and pyvorbis?
...about the vorbis-codec, 
I found that the problem occurs here:
og = os.pageout()
if not og: break
no page is actually written, it returns None. And consequently it breaks.
The wrapper-source says this:
/* TODO: You can't keep a page between calls to flush or pageout!! */
static PyObject *
py_ogg_stream_pageout(PyObject *self, PyObject *args)
{
  ogg_page op;
  int res;
 
  if (!PyArg_ParseTuple(args, ""))
    return NULL;
  res = ogg_stream_pageout(PY_OGG_STREAM(self), &op);
  if (res == 0) {
    Py_INCREF(Py_None);
    return Py_None;
  }
  return py_ogg_page_from_page(&op);
}...