
Functions | |
| static void | ArtCacheCreateDir (const char *psz_dir) |
| static char * | ArtCacheGetDirPath (const char *psz_arturl, const char *psz_artist, const char *psz_album, const char *psz_title) |
| static char * | ArtCachePath (input_item_t *p_item) |
| static char * | ArtCacheName (input_item_t *p_item, const char *psz_type) |
| int | playlist_FindArtInCache (input_item_t *p_item) |
| int | playlist_SaveArt (playlist_t *p_playlist, input_item_t *p_item, const uint8_t *p_buffer, int i_buffer, const char *psz_type) |
| static void ArtCacheCreateDir | ( | const char * | psz_dir | ) | [static] |
References DIR_SEP_CHAR, EMPTY_STR, and vlc_mkdir().
Referenced by ArtCacheName().
| static char* ArtCacheGetDirPath | ( | const char * | psz_arturl, | |
| const char * | psz_artist, | |||
| const char * | psz_album, | |||
| const char * | psz_title | |||
| ) | [static] |
References AddMD5(), asprintf(), config_GetUserDir(), DIR_SEP, EMPTY_STR, EndMD5(), filename_sanitize(), InitMD5(), psz_md5_hash(), strdup(), and VLC_CACHE_DIR.
Referenced by ArtCachePath().
| static char* ArtCacheName | ( | input_item_t * | p_item, | |
| const char * | psz_type | |||
| ) | [static] |
References ArtCacheCreateDir(), ArtCachePath(), asprintf(), DIR_SEP, filename_sanitize(), psz_ext, and strdup().
Referenced by playlist_SaveArt().
| static char* ArtCachePath | ( | input_item_t * | p_item | ) | [static] |
References ArtCacheGetDirPath(), EMPTY_STR, input_item_t::lock, input_item_t::p_meta, input_item_t::psz_name, vlc_meta_Album, vlc_meta_Artist, vlc_meta_ArtworkURL, vlc_meta_Get(), vlc_meta_New(), vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ArtCacheName(), and playlist_FindArtInCache().
| int playlist_FindArtInCache | ( | input_item_t * | p_item | ) |
References ArtCachePath(), asprintf(), DIR_SEP, input_item_SetArtURL, make_URI(), vlc_opendir(), vlc_readdir(), and VLC_SUCCESS.
Referenced by FindArt(), and input_ExtractAttachmentAndCacheArt().
| int playlist_SaveArt | ( | playlist_t * | p_playlist, | |
| input_item_t * | p_item, | |||
| const uint8_t * | p_buffer, | |||
| int | i_buffer, | |||
| const char * | psz_type | |||
| ) |
References ArtCacheName(), input_item_SetArtURL, make_URI(), msg_Dbg, msg_Err, vlc_fopen(), and vlc_stat().
Referenced by DownloadArt(), and input_ExtractAttachmentAndCacheArt().
1.7.1