Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
6c261070
Commit
6c261070
authored
Sep 30, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Don't cache files to ~/.vlc/art/(null)/(null)/
- Check if file already exists in the download function.
parent
53d5b959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/input/meta.c
src/input/meta.c
+10
-0
No files found.
src/input/meta.c
View file @
6c261070
...
@@ -171,6 +171,16 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
...
@@ -171,6 +171,16 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
||
!*
p_item
->
p_meta
->
psz_arturl
)
||
!*
p_item
->
p_meta
->
psz_arturl
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
/* FIXME: use an alternate saving filename scheme if we don't have
* the artist or album name */
if
(
!
p_item
->
p_meta
->
psz_artist
||
!
p_item
->
p_meta
->
psz_album
)
return
VLC_EGENERIC
;
/* Check if file doesn't already exist */
if
(
input_FindArtInCache
(
p_playlist
,
p_item
)
==
VLC_SUCCESS
)
return
VLC_SUCCESS
;
psz_type
=
strrchr
(
p_item
->
p_meta
->
psz_arturl
,
'.'
);
psz_type
=
strrchr
(
p_item
->
p_meta
->
psz_arturl
,
'.'
);
/* Todo: get a helper to do this */
/* Todo: get a helper to do this */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment