diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-15 19:39:55 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-15 19:39:55 +0000 |
commit | 12d3bd0716d7ec01edc06ed48eab3decaaa8b5b9 (patch) | |
tree | c5d5dea6710f746639e63ed56b32f861df6046d3 /src | |
parent | c34d372a4d618055928c2904fa7069cdb8228949 (diff) | |
download | mpd-12d3bd0716d7ec01edc06ed48eab3decaaa8b5b9.tar.gz mpd-12d3bd0716d7ec01edc06ed48eab3decaaa8b5b9.tar.xz mpd-12d3bd0716d7ec01edc06ed48eab3decaaa8b5b9.zip |
fix a bug in update if unable to open mp4 file, would cause a segfault
git-svn-id: https://svn.musicpd.org/mpd/trunk@1025 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/tag.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -285,6 +285,7 @@ MpdTag * mp4TagDup(char * utf8file) { int mp4MetadataFound = 0; ret = mp4DataDup(utf8file,&mp4MetadataFound); + if(!ret) return NULL; if(!mp4MetadataFound) { MpdTag * temp = id3Dup(utf8file); if(temp) { |