[library] Rename 'library_process_media' to 'library_add_media'

This commit is contained in:
chme 2017-02-12 16:03:01 +01:00 committed by ejurgensen
parent dadba23efc
commit bdd08f516f
5 changed files with 7 additions and 7 deletions

View File

@ -344,7 +344,7 @@ fixup_tags(struct media_file_info *mfi)
}
void
library_process_media(struct media_file_info *mfi)
library_add_media(struct media_file_info *mfi)
{
if (!mfi->path || !mfi->fname || !mfi->data_kind)
{

View File

@ -66,7 +66,7 @@ struct library_source
void
library_process_media(struct media_file_info *mfi);
library_add_media(struct media_file_info *mfi);
int
library_add_playlist_info(const char *path, const char *title, const char *virtual_path, enum pl_type type, int parent_pl_id, int dir_id);

View File

@ -456,7 +456,7 @@ process_regular_file(char *file, struct stat *sb, int type, int flags, int dir_i
}
}
library_process_media(&mfi);
library_add_media(&mfi);
cache_artwork_ping(file, sb->st_mtime, !is_bulkscan);
// TODO [artworkcache] If entry in artwork cache exists for no artwork available, delete the entry if media file has embedded artwork

View File

@ -267,7 +267,7 @@ scan_playlist(char *file, time_t mtime, int dir_id)
snprintf(virtual_path, PATH_MAX, "/http:/%s", mfi.title); //TODO can title be null at this point?
mfi.virtual_path = strdup(virtual_path);
library_process_media(&mfi);
library_add_media(&mfi);
}
/* Regular file, should already be in library */
else

View File

@ -711,7 +711,7 @@ spotify_track_save(int plid, sp_track *track, const char *pltitle, int time_adde
mfi.virtual_path = strdup(virtual_path);
mfi.directory_id = dir_id;
library_process_media(&mfi);
library_add_media(&mfi);
free_mfi(&mfi, 1);
@ -2094,7 +2094,7 @@ scan_saved_albums()
mfi.virtual_path = strdup(virtual_path);
mfi.directory_id = dir_id;
library_process_media(&mfi);
library_add_media(&mfi);
free_mfi(&mfi, 1);
}
@ -2190,7 +2190,7 @@ scan_playlisttracks(struct spotify_playlist *playlist, int plid)
mfi.virtual_path = strdup(virtual_path);
mfi.directory_id = dir_id;
library_process_media(&mfi);
library_add_media(&mfi);
spotify_uri_register(track.uri);