Annotation of /trunk/libtunepimp/patches/libtunepimp-0.5.3-libmp4v2.patch
Parent Directory | Revision Log
Revision 1164 -
(hide annotations)
(download)
Wed Sep 29 22:06:40 2010 UTC (13 years, 11 months ago) by niro
File size: 852 byte(s)
Wed Sep 29 22:06:40 2010 UTC (13 years, 11 months ago) by niro
File size: 852 byte(s)
support newer libmp4v2
1 | niro | 1164 | diff -ur libtunepimp-0.5.3.orig/plugins/mp4/mp4.cpp libtunepimp-0.5.3/plugins/mp4/mp4.cpp |
2 | --- libtunepimp-0.5.3.orig/plugins/mp4/mp4.cpp 2009-07-10 15:50:20.000000000 +0300 | ||
3 | +++ libtunepimp-0.5.3/plugins/mp4/mp4.cpp 2009-07-10 15:51:18.000000000 +0300 | ||
4 | @@ -28,7 +28,7 @@ | ||
5 | #include <string.h> | ||
6 | #include <stdio.h> | ||
7 | #include <stdlib.h> | ||
8 | -#include <mp4.h> | ||
9 | +#include <mp4v2/mp4v2.h> | ||
10 | #include "metadata.h" | ||
11 | #include "plugin.h" | ||
12 | #ifndef WIN32 | ||
13 | @@ -232,7 +232,7 @@ | ||
14 | |||
15 | strcpy(mdata->fileFormat, fileName + strlen(fileName) - 3); | ||
16 | |||
17 | - if (!MP4Close(mp4file)) | ||
18 | + MP4Close(mp4file); | ||
19 | return 0; | ||
20 | |||
21 | return 1; | ||
22 | @@ -316,7 +316,7 @@ | ||
23 | sprintf(temp, "%d", mdata->nonAlbum); | ||
24 | MP4SetMetadataFreeForm(mp4file, "MusicBrainz Non-Album", (u_int8_t *)temp, strlen(temp) + 1); | ||
25 | |||
26 | - if (!MP4Close(mp4file)) | ||
27 | + MP4Close(mp4file); | ||
28 | return 0; | ||
29 | |||
30 | #ifndef WIN32 |