Skip to content

Commit

Permalink
kill, don't terminate, ffmpeg (close #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Nov 23, 2013
1 parent 2215788 commit e31af0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ convert compressed audio files to WAV files.
Version History
---------------

1.0.2
Send SIGKILL, not SIGTERM, to ffmpeg processes to avoid occasional hangs.

1.0.1
When GStreamer fails to report a duration, raise an exception instead of
silently setting the duration field to None.
Expand Down
2 changes: 1 addition & 1 deletion audioread/ffdec.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _parse_info(self, s):
def close(self):
"""Close the ffmpeg process used to perform the decoding."""
if hasattr(self, 'proc') and self.proc.returncode is None:
self.proc.terminate()
self.proc.kill()
# Flush the stdout buffer (stderr already flushed).
stdout_reader = ReaderThread(self.proc.stdout)
stdout_reader.start()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _read(fn):
return open(path).read()

setup(name='audioread',
version='1.0.1',
version='1.0.2',
description='multi-library, cross-platform audio decoding',
author='Adrian Sampson',
author_email='adrian@radbox.org',
Expand Down

0 comments on commit e31af0b

Please sign in to comment.