Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5db73af5
Commit
5db73af5
authored
Oct 16, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix [22632]: check psz_arturl before using it
parent
f4af45cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/input/meta.c
src/input/meta.c
+1
-1
src/playlist/engine.c
src/playlist/engine.c
+2
-1
No files found.
src/input/meta.c
View file @
5db73af5
...
@@ -165,7 +165,7 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
...
@@ -165,7 +165,7 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
input_FindArtInCache
(
p_playlist
,
p_item
);
input_FindArtInCache
(
p_playlist
,
p_item
);
char
*
psz_arturl
=
input_item_GetArtURL
(
p_item
);
char
*
psz_arturl
=
input_item_GetArtURL
(
p_item
);
if
(
!
strncmp
(
psz_arturl
,
"file://"
,
strlen
(
"file://"
)
)
)
if
(
psz_arturl
&&
!
strncmp
(
psz_arturl
,
"file://"
,
strlen
(
"file://"
)
)
)
{
{
free
(
psz_arturl
);
free
(
psz_arturl
);
return
0
;
/* Art is in cache, no need to go further */
return
0
;
/* Art is in cache, no need to go further */
...
...
src/playlist/engine.c
View file @
5db73af5
...
@@ -534,6 +534,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
...
@@ -534,6 +534,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
}
}
/* We already have all needed meta, but we need art right now */
/* We already have all needed meta, but we need art right now */
else
if
(
p_playlist
->
p_fetcher
->
i_art_policy
==
ALBUM_ART_ALL
&&
else
if
(
p_playlist
->
p_fetcher
->
i_art_policy
==
ALBUM_ART_ALL
&&
!
psz_arturl
?
1
:
strncmp
(
psz_arturl
,
"file://"
,
strlen
(
"file://"
)
)
)
strncmp
(
psz_arturl
,
"file://"
,
strlen
(
"file://"
)
)
)
{
{
preparse_item_t
p
;
preparse_item_t
p
;
...
...
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