• Charles Kerr's avatar
    decoder/ffmpeg: fix crash on startup in mpd_ffmpeg_log_callback() · 6a958980
    Charles Kerr authored
    What's happening is the `ptr' argument to that function is NULL for me
    every time. `ptr' is unconditionally dereferenced to generate a log
    message, and this is where mpd crashes.
    
    Attached is a simple patch that tests for NULL and omits the log. With
    this patch the crash disappeared and mpd went back to working well.
    6a958980
ffmpeg_decoder_plugin.c 14.6 KB