• Max Kellermann's avatar
    shout_mp3: call lame_close() in clear_encoder() method · 3b0a78fe
    Max Kellermann authored
    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.
    3b0a78fe
shout_mp3.c 4.61 KB