diff options
author | Max Kellermann <max@duempel.org> | 2009-02-02 18:19:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-02 18:22:56 +0100 |
commit | 3b0a78fe0dc9f4110692975f54cd1e585d2c6e27 (patch) | |
tree | 4d367a275c4df971892cdec0b0b5379552931d19 /src/pcm_resample_libsamplerate.c | |
parent | 1fdf25214f1c4c6d2df1a6386d4091ec07c94ef9 (diff) | |
download | mpd-3b0a78fe0dc9f4110692975f54cd1e585d2c6e27.tar.gz mpd-3b0a78fe0dc9f4110692975f54cd1e585d2c6e27.tar.xz mpd-3b0a78fe0dc9f4110692975f54cd1e585d2c6e27.zip |
shout_mp3: call lame_close() in clear_encoder() method
The shout_mp3 encoder had two bugs: when no song was ever played, MPD
segfaulted during cleanup. Second bug: memory leak, each time the
shout device was opened, lame_init() was called again, and
lame_close() is only called once during shutdown.
Fix this by shutting down LAME each time the clear_encoder() method is
called.
Diffstat (limited to 'src/pcm_resample_libsamplerate.c')
0 files changed, 0 insertions, 0 deletions