Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
adcd2c8e
Commit
adcd2c8e
authored
Aug 14, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_song: use map_to_relative_path()
parent
45ff3558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
playlist_song.c
src/playlist_song.c
+4
-4
No files found.
src/playlist_song.c
View file @
adcd2c8e
...
@@ -134,11 +134,11 @@ playlist_check_translate_song(struct song *song, const char *base_uri,
...
@@ -134,11 +134,11 @@ playlist_check_translate_song(struct song *song, const char *base_uri,
if
(
g_path_is_absolute
(
uri
))
{
if
(
g_path_is_absolute
(
uri
))
{
/* XXX fs_charset vs utf8? */
/* XXX fs_charset vs utf8? */
const
char
*
prefix
=
mapper_get_music_directory
();
const
char
*
suffix
=
map_to_relative_path
(
uri
);
assert
(
suffix
!=
NULL
);
if
(
prefix
!=
NULL
&&
g_str_has_prefix
(
uri
,
prefix
)
&&
if
(
suffix
!=
uri
)
uri
[
strlen
(
prefix
)]
==
'/'
)
uri
=
suffix
;
uri
+=
strlen
(
prefix
)
+
1
;
else
if
(
!
secure
)
{
else
if
(
!
secure
)
{
/* local files must be relative to the music
/* local files must be relative to the music
directory when "secure" is enabled */
directory when "secure" is enabled */
...
...
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