Lines Matching refs:dp
112 struct dirent *dp;
137 while ((dp = readdir(dh)) != NULL)
139 switch( dp->d_type )
146 asprintf(&file, "%s/%s", dir, dp->d_name);
156 if( (*(dp->d_name) != '.') &&
157 (is_video(dp->d_name) || is_audio(dp->d_name)) &&
158 (album_art_name || strncmp(dp->d_name, match, ncmp) == 0) )
160 DPRINTF(E_DEBUG, L_METADATA, "New file %s looks like cover art for %s\n", path, dp->d_name);
161 asprintf(&file, "%s/%s", dir, dp->d_name);
164 DPRINTF(E_WARN, L_METADATA, "Error setting %s as cover art for %s\n", match, dp->d_name);