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
999a6f0e
Commit
999a6f0e
authored
Aug 21, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use utf8_readdir properly.
parent
cdfc74d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/input/meta.c
src/input/meta.c
+4
-4
No files found.
src/input/meta.c
View file @
999a6f0e
...
...
@@ -129,7 +129,7 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
if
(
!
psz_title
)
psz_title
=
input_item_GetName
(
p_item
);
if
(
!
psz_title
&&
!
psz_artist
&&
!
psz_album
)
if
(
!
psz_title
&&
!
psz_artist
&&
!
psz_album
)
return
VLC_EGENERIC
;
free
(
psz_title
);
...
...
@@ -321,7 +321,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
char
*
psz_title
;
char
psz_dirname
[
MAX_PATH
+
1
];
char
psz_filename
[
MAX_PATH
+
1
];
struct
dirent
*
p_de
;
char
*
p_de
;
DIR
*
p_dir
;
if
(
!
p_item
->
p_meta
)
return
VLC_EGENERIC
;
...
...
@@ -353,10 +353,10 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
while
(
(
p_de
=
utf8_readdir
(
psz_dirname
))
)
{
if
(
strncmp
(
p_de
->
d_name
,
"art"
,
3
)
)
if
(
strncmp
(
p_de
,
"art"
,
3
)
)
{
snprintf
(
psz_filename
,
MAX_PATH
,
"%s"
DIR_SEP
"%s"
,
psz_dirname
,
p_de
->
d_nam
e
);
psz_dirname
,
p_d
e
);
input_item_SetArtURL
(
p_item
,
psz_filename
);
closedir
(
p_dir
);
return
VLC_SUCCESS
;
...
...
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