summaryrefslogtreecommitdiff
path: root/audio/py-vorbis/patches/patch-aa
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-02-15 15:47:29 +0000
committerminskim <minskim@pkgsrc.org>2004-02-15 15:47:29 +0000
commita417d41ce39fd6f337eecaf1f0c7684b933ba21f (patch)
tree8de6f110baccc09a0f67659f40d9155bcdf2568b /audio/py-vorbis/patches/patch-aa
parentcffe5240a096d09b3563478f3c9281c29674fe94 (diff)
downloadpkgsrc-a417d41ce39fd6f337eecaf1f0c7684b933ba21f.tar.gz
Import py-vorbis from pkgsrc-wip. Provided by Michal Pasternak, and
slightly modified by me. This package is Vorbis bindings for Python; see vorbis for details.
Diffstat (limited to 'audio/py-vorbis/patches/patch-aa')
-rw-r--r--audio/py-vorbis/patches/patch-aa34
1 files changed, 34 insertions, 0 deletions
diff --git a/audio/py-vorbis/patches/patch-aa b/audio/py-vorbis/patches/patch-aa
new file mode 100644
index 00000000000..b6ac518b977
--- /dev/null
+++ b/audio/py-vorbis/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/15 15:47:29 minskim Exp $
+
+--- src/pyvorbisfile.c.foo Tue Sep 9 05:40:48 2003
++++ src/pyvorbisfile.c Sat Nov 22 15:03:35 2003
+@@ -178,10 +178,12 @@
+ static void
+ py_ov_file_dealloc(PyObject *self)
+ {
++ py_vorbisfile *py_self;
++
+ if (PY_VORBISFILE(self))
+ ov_clear(PY_VORBISFILE(self));
+
+- py_vorbisfile *py_self = (py_vorbisfile *) self;
++ py_self = (py_vorbisfile *) self;
+ if (py_self->py_file) {
+ /* If file was opened from a file object, decref it, so it can
+ close */
+@@ -221,6 +223,7 @@
+ PyErr_Clear(); /* clear first failure */
+ if (PyArg_ParseTuple(args, "O!|sl", &PyFile_Type, &fobject,
+ &initial, &ibytes)) {
++ int orig_fd, new_fd;
+
+ fname = NULL;
+ file = PyFile_AsFile(fobject);
+@@ -234,7 +237,6 @@
+ Really, you shouldn't be passing in files anymore, but in the
+ interest of backwards compatibility it'll stay.
+ */
+- int orig_fd, new_fd;
+ orig_fd = fileno(file);
+ new_fd = dup(orig_fd);
+ file = fdopen(new_fd, "r");