Files
2013-09-26 17:14:40 +02:00

33 lines
858 B
Plaintext

$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()))