mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #8139: ossaudiodev didn't initialize its types properly, therefore
some methods (such as oss_mixer_device.fileno()) were not available. Initial patch by Bertrand Janin.
This commit is contained in:
parent
4c5475d196
commit
39b3543174
4 changed files with 21 additions and 1 deletions
|
|
@ -986,11 +986,17 @@ static struct PyModuleDef ossaudiodevmodule = {
|
|||
NULL
|
||||
};
|
||||
|
||||
PyObject*
|
||||
PyMODINIT_FUNC
|
||||
PyInit_ossaudiodev(void)
|
||||
{
|
||||
PyObject *m;
|
||||
|
||||
if (PyType_Ready(&OSSAudioType) < 0)
|
||||
return NULL;
|
||||
|
||||
if (PyType_Ready(&OSSMixerType) < 0)
|
||||
return NULL;
|
||||
|
||||
m = PyModule_Create(&ossaudiodevmodule);
|
||||
if (m == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue