"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scanner.c" between
minidlna-1.1.4.tar.gz and minidlna-1.1.5.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.

scanner.c  (minidlna-1.1.4):scanner.c  (minidlna-1.1.5)
skipping to change at line 752 skipping to change at line 752
n = scandir(dir, &namelist, filter_v, alphasort); n = scandir(dir, &namelist, filter_v, alphasort);
break; break;
case TYPE_VIDEO|TYPE_IMAGES: case TYPE_VIDEO|TYPE_IMAGES:
n = scandir(dir, &namelist, filter_vp, alphasort); n = scandir(dir, &namelist, filter_vp, alphasort);
break; break;
case TYPE_IMAGES: case TYPE_IMAGES:
n = scandir(dir, &namelist, filter_p, alphasort); n = scandir(dir, &namelist, filter_p, alphasort);
break; break;
default: default:
n = -1; n = -1;
errno = EINVAL;
break; break;
} }
if( n < 0 ) if( n < 0 )
{ {
DPRINTF(E_WARN, L_SCANNER, "Error scanning %s\n", dir); DPRINTF(E_WARN, L_SCANNER, "Error scanning %s [%s]\n",
dir, strerror(errno));
return; return;
} }
full_path = malloc(PATH_MAX); full_path = malloc(PATH_MAX);
if (!full_path) if (!full_path)
{ {
DPRINTF(E_ERROR, L_SCANNER, "Memory allocation failed scanning %s \n", dir); DPRINTF(E_ERROR, L_SCANNER, "Memory allocation failed scanning %s \n", dir);
return; return;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

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