From ef1c54b116815eedcef6a5993380c0c10ba52ca1 Mon Sep 17 00:00:00 2001 From: Alexander Botero-Lowry Date: Tue, 2 Oct 2007 23:25:43 +0000 Subject: - Fix build with new version of mpeg4ip-libmp4v2 PR: 116780 Submitted by: Jaap Boender --- audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp (limited to 'audio/libtunepimp') diff --git a/audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp b/audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp new file mode 100644 index 000000000000..eb14fb2c18f1 --- /dev/null +++ b/audio/libtunepimp/files/patch-plugins-mp4-mp4.cpp @@ -0,0 +1,23 @@ +--- plugins/mp4/mp4.cpp.orig 2006-11-18 02:51:08.000000000 -0800 ++++ plugins/mp4/mp4.cpp 2007-10-02 16:24:06.000000000 -0700 +@@ -231,9 +231,7 @@ + + strcpy(mdata->fileFormat, fileName + strlen(fileName) - 3); + +- if (!MP4Close(mp4file)) +- return 0; +- ++ MP4Close(mp4file); + return 1; + } + +@@ -315,8 +313,7 @@ + sprintf(temp, "%d", mdata->nonAlbum); + MP4SetMetadataFreeForm(mp4file, "MusicBrainz Non-Album", (u_int8_t *)temp, strlen(temp) + 1); + +- if (!MP4Close(mp4file)) +- return 0; ++ MP4Close(mp4file); + + #ifndef WIN32 + if (!MP4Optimize(utf8ToEncoding(fileName, encoding).c_str())) -- cgit v1.2.3