diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2017-01-04 22:30:46 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2017-01-04 22:30:46 +0100 |
| commit | 53bf244d3f1af6d087bc435dab6d6b5e4aa10a1f (patch) | |
| tree | fd8bddcd06261aa44b90e177682e41d7f937bd52 | |
| parent | 8ee07f85e69e482cb74bec3f708e1c64f696de79 (diff) | |
Fix error from previous bugfix
This time hopefully not introducing yet another error ...
| -rw-r--r-- | sounddevice.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py index a7a370e..92a8b88 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -941,7 +941,9 @@ class _StreamBase(object): self._latency = info.inputLatency, info.outputLatency if finished_callback: - if not isinstance(finished_callback, _ffi.CData): + if isinstance(finished_callback, _ffi.CData): + self._finished_callback = finished_callback + else: def finished_callback_wrapper(_): return finished_callback() |
