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
9bb26675
Commit
9bb26675
authored
Aug 21, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/meta.c: Use more explicit variable naming in __input_FindArtInCache.
parent
763f3641
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/input/meta.c
src/input/meta.c
+13
-13
No files found.
src/input/meta.c
View file @
9bb26675
...
@@ -319,9 +319,9 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
...
@@ -319,9 +319,9 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
char
*
psz_artist
;
char
*
psz_artist
;
char
*
psz_album
;
char
*
psz_album
;
char
*
psz_title
;
char
*
psz_title
;
char
psz_dir
name
[
MAX_PATH
+
1
];
char
psz_dir
path
[
MAX_PATH
+
1
];
char
psz_file
name
[
MAX_PATH
+
1
];
char
psz_file
path
[
MAX_PATH
+
1
];
char
*
p
_d
e
;
char
*
p
sz_filenam
e
;
DIR
*
p_dir
;
DIR
*
p_dir
;
if
(
!
p_item
->
p_meta
)
return
VLC_EGENERIC
;
if
(
!
p_item
->
p_meta
)
return
VLC_EGENERIC
;
...
@@ -339,7 +339,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
...
@@ -339,7 +339,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
ArtCacheGetDirPath
(
p_obj
,
psz_dir
name
,
psz_title
,
ArtCacheGetDirPath
(
p_obj
,
psz_dir
path
,
psz_title
,
psz_artist
,
psz_album
);
psz_artist
,
psz_album
);
free
(
psz_artist
);
free
(
psz_artist
);
...
@@ -347,25 +347,25 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
...
@@ -347,25 +347,25 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
free
(
psz_title
);
free
(
psz_title
);
/* Check if file exists */
/* Check if file exists */
p_dir
=
utf8_opendir
(
psz_dir
name
);
p_dir
=
utf8_opendir
(
psz_dir
path
);
if
(
!
p_dir
)
if
(
!
p_dir
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
while
(
(
p
_d
e
=
utf8_readdir
(
p_dir
))
)
while
(
(
p
sz_filenam
e
=
utf8_readdir
(
p_dir
))
)
{
{
if
(
!
strncmp
(
p
_d
e
,
"art"
,
3
)
)
if
(
!
strncmp
(
p
sz_filenam
e
,
"art"
,
3
)
)
{
{
snprintf
(
psz_file
name
,
MAX_PATH
,
"%s"
DIR_SEP
"%s"
,
snprintf
(
psz_file
path
,
MAX_PATH
,
"%s"
DIR_SEP
"%s"
,
psz_dir
name
,
p_d
e
);
psz_dir
path
,
psz_filenam
e
);
input_item_SetArtURL
(
p_item
,
psz_file
name
);
input_item_SetArtURL
(
p_item
,
psz_file
path
);
free
(
p
_d
e
);
free
(
p
sz_filenam
e
);
break
;
break
;
}
}
free
(
p
_d
e
);
free
(
p
sz_filenam
e
);
}
}
closedir
(
p_dir
);
closedir
(
p_dir
);
return
(
p
_d
e
==
NULL
)
?
VLC_EGENERIC
:
VLC_SUCCESS
;
return
(
p
sz_filenam
e
==
NULL
)
?
VLC_EGENERIC
:
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