[SCM] libcoverart/master: Remove obsolete patch

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Mon Jul 6 19:45:52 UTC 2015


The following commit has been merged in the master branch:
commit 598735d5ecc71f1a8a31b44199907b91ca272c59
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Mon Jul 6 20:59:51 2015 +0200

    Remove obsolete patch

diff --git a/debian/patches/PATH_MAX.patch b/debian/patches/PATH_MAX.patch
deleted file mode 100644
index c764c86..0000000
--- a/debian/patches/PATH_MAX.patch
+++ /dev/null
@@ -1,176 +0,0 @@
-Description: Replace PATH_MAX with dynamic memory allocation
-Author: Sebastian Ramacher <sramacher at debian.org>
-Last-Update: 2014-01-15
-Forwarded: https://github.com/metabrainz/libcoverart
-
-diff --git a/examples/example_c.c b/examples/example_c.c
-index a4ddd12..6a05831 100644
---- a/examples/example_c.c
-+++ b/examples/example_c.c
-@@ -23,6 +23,7 @@
- 
- ----------------------------------------------------------------------------*/
- 
-+#include <stdlib.h>
- #include <stdio.h>
- #include <limits.h>
- #include <string.h>
-@@ -44,9 +45,12 @@ int main(int argc, const char *argv[])
- 			{
- 				if (0!=caa_imagedata_size(ImageData))
- 				{
--					char FileName[PATH_MAX];
-+					int size;
-+					char *FileName;
- 					FILE *fptr;
- 
-+					size=snprintf(NULL,0,"%s-front.jpg",ReleaseID);
-+					FileName=malloc((size+1) * sizeof(char));
- 					sprintf(FileName,"%s-front.jpg",ReleaseID);
- 
- 					printf("Saving front to '%s'\n",FileName);
-@@ -57,6 +61,8 @@ int main(int argc, const char *argv[])
- 						fclose(fptr);
- 						printf("Saved front to '%s'\n",FileName);
- 					}
-+
-+					free(FileName);
- 				}
- 				else
- 				{
-@@ -71,9 +77,12 @@ int main(int argc, const char *argv[])
- 			{
- 				if (0!=caa_imagedata_size(ImageData))
- 				{
--					char FileName[PATH_MAX];
-+					int size;
-+					char *FileName;
- 					FILE *fptr;
- 
-+					size=snprintf(NULL,0,"%s-back.jpg",ReleaseID);
-+					FileName=malloc((size+1) * sizeof(char));
- 					sprintf(FileName,"%s-back.jpg",ReleaseID);
- 
- 					printf("Saving back to '%s'\n",FileName);
-@@ -84,6 +93,8 @@ int main(int argc, const char *argv[])
- 						fclose(fptr);
- 						printf("Saved back to '%s'\n",FileName);
- 					}
-+
-+					free(FileName);
- 				}
- 				else
- 				{
-@@ -109,14 +120,25 @@ int main(int argc, const char *argv[])
- 						CaaImage Image=caa_image_list_item(ImageList,ImageNum);
- 						if (Image)
- 						{
--							char ID[PATH_MAX];
--							char Comment[PATH_MAX];
--							char URL[PATH_MAX];
-+							char *ID;
-+							char *Comment;
-+							char *URL;
-+							int ID_size;
-+							int Comment_size;
-+							int URL_size;
- 							CaaThumbnails Thumbnails=caa_image_get_thumbnails(Image);
- 
--							caa_image_get_id(Image,ID,sizeof(ID));
--							caa_image_get_comment(Image,Comment,sizeof(Comment));
--							caa_image_get_image(Image,URL,sizeof(URL));
-+							ID_size=caa_image_get_id(Image, NULL, 0) + 1;
-+							Comment_size=caa_image_get_comment(Image, NULL, 0) + 1;
-+							URL_size=caa_image_get_image(Image, NULL, 0) + 1;
-+
-+							ID=malloc(ID_size * sizeof(char));
-+							Comment=malloc(Comment_size * sizeof(char));
-+							URL=malloc(URL_size * sizeof(char));
-+
-+							caa_image_get_id(Image,ID,ID_size);
-+							caa_image_get_comment(Image,Comment,Comment_size);
-+							caa_image_get_image(Image,URL,URL_size);
- 
- 							printf("\nApproved: %d\n",caa_image_get_approved(Image));
- 							printf("Back: %d\n",caa_image_get_back(Image));
-@@ -131,9 +153,12 @@ int main(int argc, const char *argv[])
- 							{
- 								if (0!=caa_imagedata_size(ImageData))
- 								{
--									char FileName[PATH_MAX];
-+									int size;
-+									char *FileName;
- 									FILE *fptr;
- 
-+									size=snprintf(NULL,0,"%s-%s-full.jpg",ReleaseID,ID);
-+									FileName=malloc((size+1) * sizeof(char));
- 									sprintf(FileName,"%s-%s-full.jpg",ReleaseID,ID);
- 
- 									printf("Saving full for '%s' to '%s'\n",ID,FileName);
-@@ -144,6 +169,8 @@ int main(int argc, const char *argv[])
- 										fclose(fptr);
- 										printf("Saved full to '%s'\n",FileName);
- 									}
-+
-+									free(FileName);
- 								}
- 
- 								caa_imagedata_delete(ImageData);
-@@ -158,9 +185,12 @@ int main(int argc, const char *argv[])
- 									{
- 										if (0!=caa_imagedata_size(ImageData))
- 										{
--											char FileName[PATH_MAX];
-+											int size;
-+											char *FileName;
- 											FILE *fptr;
- 
-+											size=snprintf(NULL,0,"%s-%s-500.jpg",ReleaseID,ID);
-+											FileName=malloc((size+1) * sizeof(char));
- 											sprintf(FileName,"%s-%s-500.jpg",ReleaseID,ID);
- 
- 											printf("Saving 500 for '%s' to '%s'\n",ID,FileName);
-@@ -171,6 +201,8 @@ int main(int argc, const char *argv[])
- 												fclose(fptr);
- 												printf("Saved 500 to '%s'\n",FileName);
- 											}
-+
-+											free(FileName);
- 										}
- 
- 										caa_imagedata_delete(ImageData);
-@@ -183,9 +215,12 @@ int main(int argc, const char *argv[])
- 										{
- 											if (0!=caa_imagedata_size(ImageData))
- 											{
--												char FileName[PATH_MAX];
-+												int size;
-+												char *FileName;
- 												FILE *fptr;
- 
-+												size=snprintf(NULL,0,"%s-%s-250.jpg",ReleaseID,ID);
-+												FileName=malloc((size+1) * sizeof(char));
- 												sprintf(FileName,"%s-%s-250.jpg",ReleaseID,ID);
- 
- 												printf("Saving 250 for '%s' to '%s'\n",ID,FileName);
-@@ -196,6 +231,8 @@ int main(int argc, const char *argv[])
- 													fclose(fptr);
- 													printf("Saved 250 to '%s'\n",FileName);
- 												}
-+
-+												free(FileName);
- 											}
- 
- 											caa_imagedata_delete(ImageData);
-@@ -203,6 +240,10 @@ int main(int argc, const char *argv[])
- 									}
- 								}
- 							}
-+
-+							free(ID);
-+							free(Comment);
-+							free(URL);
- 						}
- 					}
- 				}
-
diff --git a/debian/patches/series b/debian/patches/series
index 9f486af..002c7df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
 remove-unused-code.patch
-PATH_MAX.patch
 out-of-tree.patch

-- 
libcoverart packaging



More information about the pkg-multimedia-commits mailing list