]> diplodocus.org Git - flac-archive/commitdiff
rename
authorepg@pretzelnet.org <>
Fri, 2 Nov 2012 07:47:52 +0000 (00:47 -0700)
committerepg@pretzelnet.org <>
Fri, 2 Nov 2012 07:47:52 +0000 (00:47 -0700)
apic-write.cc [moved from taglib.cc with 99% similarity]

similarity index 99%
rename from taglib.cc
rename to apic-write.cc
index 750bd870ead2e74721a0437bef2a04c6a6095861..178c5b624d4d6d638ab921f694fa2e9249a8a919 100644 (file)
--- a/taglib.cc
@@ -103,7 +103,7 @@ main(int argc, char **argv)
     const char *mp3_path = argv[0];
 
     char *image_bytes;
-    size_t image_len;
+    ssize_t image_len;
     if (argc == 2) {
         const char *image_path = argv[1];
         int fd = open(image_path, O_RDONLY);
@@ -129,7 +129,6 @@ main(int argc, char **argv)
 
     printf("mp3: %s imagelen: %ld desc: %s mime: %s\n",
            mp3_path, (long)image_len, description, mime_type);
-    return 0;
 
     const char *result = taglib_apic(mp3_path, image_bytes, image_len, description, mime_type);
     if (result != 0) {