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
4af2ccf4
Commit
4af2ccf4
authored
Aug 12, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/meta.c: Be a bit more selective on meta pre-requirement for art.
parent
33f279fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/input/meta.c
src/input/meta.c
+5
-5
No files found.
src/input/meta.c
View file @
4af2ccf4
...
...
@@ -96,8 +96,8 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
if
(
!
p_item
->
p_meta
)
return
VLC_EGENERIC
;
if
(
!
p_item
->
psz_name
&&
!
p_item
->
p_meta
->
psz_title
&&
!
p_item
->
p_meta
->
psz_artist
&&
!
p_item
->
p_meta
->
psz_album
)
if
(
!
p_item
->
psz_name
&&
!
p_item
->
p_meta
->
psz_title
&&
(
!
p_item
->
p_meta
->
psz_artist
||
!
p_item
->
p_meta
->
psz_album
)
)
return
VLC_EGENERIC
;
/* If we already checked this album in this session, skip */
...
...
@@ -268,7 +268,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
psz_title
=
p_item
->
p_meta
->
psz_title
;
if
(
!
psz_title
)
psz_title
=
p_item
->
psz_name
;
if
(
!
psz_artist
&&
!
psz_album
&&
!
psz_title
)
return
VLC_EGENERIC
;
if
(
(
!
psz_artist
||
!
psz_album
)
&&
!
psz_title
)
return
VLC_EGENERIC
;
for
(
i
=
0
;
i
<
5
;
i
++
)
{
...
...
@@ -307,7 +307,7 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
else
if
(
p_item
->
psz_name
)
psz_title
=
ArtCacheCreateString
(
p_item
->
psz_name
);
if
(
!
psz_title
&&
!
psz_album
&&
!
psz_artist
)
if
(
(
!
psz_title
||
!
psz_album
)
&&
!
psz_artist
)
{
free
(
psz_title
);
free
(
psz_album
);
...
...
@@ -429,7 +429,7 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
else
if
(
p_item
->
psz_name
)
psz_title
=
ArtCacheCreateString
(
p_item
->
psz_name
);
if
(
!
psz_artist
&&
!
psz_album
&&
!
psz_title
)
if
(
(
!
psz_artist
||
!
psz_album
)
&&
!
psz_title
)
goto
end
;
/* */
...
...
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