Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
dd146c48
Commit
dd146c48
authored
Sep 24, 2006
by
dionoea
Browse files
Use DIR_SEP
parent
f17e985a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/meta_engine/dummy.c
View file @
dd146c48
...
...
@@ -94,7 +94,8 @@ static int FindMeta( vlc_object_t *p_this )
char
*
psz_filename
;
struct
stat
a
;
asprintf
(
&
psz_filename
,
"file://%s/"
CONFIG_DIR
"/art/%s/%s/art.jpg"
,
/* ahem ... we can have other filetype too... */
"file://%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
"art"
DIR_SEP
"%s"
DIR_SEP
"%s"
DIR_SEP
"art.jpg"
,
/* ahem ... we can have other filetype too... */
p_me
->
p_libvlc
->
psz_homedir
,
p_item
->
p_meta
->
psz_artist
,
p_item
->
p_meta
->
psz_album
);
...
...
src/input/input.c
View file @
dd146c48
...
...
@@ -2560,7 +2560,8 @@ int input_DownloadAndCacheArt( vlc_object_t *p_parent, input_item_t *p_item )
snprintf
(
psz_filename
,
MAX_PATH
,
"file://%s/"
CONFIG_DIR
"/art/%s/%s/art%s"
,
"file://%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
"art"
DIR_SEP
"%s"
DIR_SEP
"%s"
DIR_SEP
"art%s"
,
p_parent
->
p_libvlc
->
psz_homedir
,
psz_artist
,
psz_album
,
psz_type
);
msg_Dbg
(
p_parent
,
"Saving album art to %s"
,
psz_filename
);
...
...
@@ -2577,16 +2578,18 @@ int input_DownloadAndCacheArt( vlc_object_t *p_parent, input_item_t *p_item )
{
/* GRUIKKKKKKKKKK (make sure that all the directories exist) */
char
*
psz_dir
=
malloc
(
MAX_PATH
);
snprintf
(
psz_dir
,
MAX_PATH
,
"%s
/
"
CONFIG_DIR
,
snprintf
(
psz_dir
,
MAX_PATH
,
"%s"
DIR_SEP
CONFIG_DIR
,
p_parent
->
p_libvlc
->
psz_homedir
);
utf8_mkdir
(
psz_dir
);
snprintf
(
psz_dir
,
MAX_PATH
,
"%s
/
"
CONFIG_DIR
"
/
art"
,
snprintf
(
psz_dir
,
MAX_PATH
,
"%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
"art"
,
p_parent
->
p_libvlc
->
psz_homedir
);
utf8_mkdir
(
psz_dir
);
snprintf
(
psz_dir
,
MAX_PATH
,
"%s/"
CONFIG_DIR
"/art/%s"
,
snprintf
(
psz_dir
,
MAX_PATH
,
"%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
"art"
DIR_SEP
"%s"
,
p_parent
->
p_libvlc
->
psz_homedir
,
psz_artist
);
utf8_mkdir
(
psz_dir
);
snprintf
(
psz_dir
,
MAX_PATH
,
"%s/"
CONFIG_DIR
"/art/%s/%s"
,
snprintf
(
psz_dir
,
MAX_PATH
,
"%s"
DIR_SEP
CONFIG_DIR
DIR_SEP
"art"
DIR_SEP
"%s"
DIR_SEP
"%s"
,
p_parent
->
p_libvlc
->
psz_homedir
,
psz_artist
,
psz_album
);
utf8_mkdir
(
psz_dir
);
...
...
Write
Preview
Supports
Markdown
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