diff options
author | Charles Kerr <charles@transmissionbt.com> | 2010-04-11 19:18:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-04-11 19:18:30 +0200 |
commit | 6a958980388727048effaea081b68c8debfaa6df (patch) | |
tree | 5de8c0420631e89ae367c5982a642f20a512e78b /src/tag.c | |
parent | c52f469c9cff4ad6aeede40ff3254d695a9ba603 (diff) | |
download | mpd-6a958980388727048effaea081b68c8debfaa6df.tar.gz mpd-6a958980388727048effaea081b68c8debfaa6df.tar.xz mpd-6a958980388727048effaea081b68c8debfaa6df.zip |
decoder/ffmpeg: fix crash on startup in mpd_ffmpeg_log_callback()
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.
Diffstat (limited to 'src/tag.c')
0 files changed, 0 insertions, 0 deletions