"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "image_utils.c" between
minidlna-1.1.5.tar.gz and minidlna-1.2.0.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

image_utils.c  (minidlna-1.1.5):image_utils.c  (minidlna-1.2.0)
skipping to change at line 857 skipping to change at line 857
char * char *
image_save_to_jpeg_file(image_s * pimage, char * path) image_save_to_jpeg_file(image_s * pimage, char * path)
{ {
int nwritten, size = 0; int nwritten, size = 0;
unsigned char * buf; unsigned char * buf;
FILE * dst_file; FILE * dst_file;
buf = image_save_to_jpeg_buf(pimage, &size); buf = image_save_to_jpeg_buf(pimage, &size);
if( !buf ) if( !buf )
return NULL; return NULL;
dst_file = fopen(path, "w"); dst_file = fopen(path, "w");
if( !dst_file ) if( !dst_file )
{ {
free(buf); free(buf);
return NULL; return NULL;
} }
nwritten = fwrite(buf, 1, size, dst_file); nwritten = fwrite(buf, 1, size, dst_file);
fclose(dst_file); fclose(dst_file);
free(buf); free(buf);
return (nwritten == size) ? path : NULL; return (nwritten == size) ? path : NULL;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS