summaryrefslogtreecommitdiff
path: root/audio/libtunepimp/patches/patch-aa
blob: d5c849e126c918b916e10fa9e26f91469a7b2620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-aa,v 1.5 2011/01/29 21:15:11 markd Exp $

--- plugins/mp4/mp4.cpp.orig	2006-11-18 10:51:08.000000000 +0000
+++ plugins/mp4/mp4.cpp
@@ -27,6 +27,7 @@
 
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <mp4.h>
 #include "metadata.h"
 #include "plugin.h"
@@ -231,8 +232,7 @@ mp4ReadMetadata(metadata_t *mdata, const
   
   strcpy(mdata->fileFormat, fileName + strlen(fileName) - 3); 
   
-  if (!MP4Close(mp4file))
-    return 0;
+  MP4Close(mp4file);
   
   return 1;
 }
@@ -315,8 +315,7 @@ mp4WriteMetadata(const metadata_t *mdata
   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()))