[xiph-commits] r7460 - trunk/vorbisfile-python

jack at motherfish-iii.xiph.org jack
Thu Aug 5 19:07:46 PDT 2004


Author: jack
Date: Thu Aug  5 19:07:46 2004
New Revision: 7460

Modified:
trunk/vorbisfile-python/vorbisfile.c
Log:
Fix bug in seek_func implementation


Modified: trunk/vorbisfile-python/vorbisfile.c
===================================================================
--- trunk/vorbisfile-python/vorbisfile.c	2004-08-03 03:39:15 UTC (rev 7459)
+++ trunk/vorbisfile-python/vorbisfile.c	2004-08-03 03:50:51 UTC (rev 7460)
@@ -41,6 +41,7 @@
{
PyObject *file, *seek, *result;
PyObject *arglist;
+    int ret;

file = (PyObject *)datasource;
seek = PyObject_GetAttrString(file, "seek");
@@ -56,9 +57,10 @@
return -1;
}

+    ret = PyInt_AsLong(result);
Py_DECREF(result);

-    return 0;
+    return ret;
}

static int close_func(void *datasource)



More information about the commits mailing list