Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dd146c48
Commit
dd146c48
authored
Sep 24, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use DIR_SEP
parent
f17e985a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/meta_engine/dummy.c
modules/meta_engine/dummy.c
+2
-1
src/input/input.c
src/input/input.c
+8
-5
No files found.
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
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