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
d533b59e
Commit
d533b59e
authored
Feb 03, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistFile: switch spl_append_uri() arguments
Playlist file name first, to be consistent with the other functions in this library.
parent
5ad2980d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
PlaylistFile.cxx
src/PlaylistFile.cxx
+1
-1
PlaylistFile.hxx
src/PlaylistFile.hxx
+1
-1
PlaylistCommands.cxx
src/command/PlaylistCommands.cxx
+1
-1
No files found.
src/PlaylistFile.cxx
View file @
d533b59e
...
@@ -402,7 +402,7 @@ spl_append_song(const char *utf8path, const DetachedSong &song, Error &error)
...
@@ -402,7 +402,7 @@ spl_append_song(const char *utf8path, const DetachedSong &song, Error &error)
}
}
bool
bool
spl_append_uri
(
const
char
*
u
rl
,
const
char
*
utf8file
,
Error
&
error
)
spl_append_uri
(
const
char
*
u
tf8file
,
const
char
*
url
,
Error
&
error
)
{
{
if
(
uri_has_scheme
(
url
))
{
if
(
uri_has_scheme
(
url
))
{
return
spl_append_song
(
utf8file
,
DetachedSong
(
url
),
return
spl_append_song
(
utf8file
,
DetachedSong
(
url
),
...
...
src/PlaylistFile.hxx
View file @
d533b59e
...
@@ -71,7 +71,7 @@ bool
...
@@ -71,7 +71,7 @@ bool
spl_append_song
(
const
char
*
utf8path
,
const
DetachedSong
&
song
,
Error
&
error
);
spl_append_song
(
const
char
*
utf8path
,
const
DetachedSong
&
song
,
Error
&
error
);
bool
bool
spl_append_uri
(
const
char
*
file
,
const
char
*
utf8file
,
Error
&
error
);
spl_append_uri
(
const
char
*
path_utf8
,
const
char
*
uri_utf8
,
Error
&
error
);
bool
bool
spl_rename
(
const
char
*
utf8from
,
const
char
*
utf8to
,
Error
&
error
);
spl_rename
(
const
char
*
utf8from
,
const
char
*
utf8to
,
Error
&
error
);
...
...
src/command/PlaylistCommands.cxx
View file @
d533b59e
...
@@ -194,7 +194,7 @@ handle_playlistadd(Client &client, gcc_unused int argc, char *argv[])
...
@@ -194,7 +194,7 @@ handle_playlistadd(Client &client, gcc_unused int argc, char *argv[])
return
CommandResult
::
ERROR
;
return
CommandResult
::
ERROR
;
}
}
success
=
spl_append_uri
(
uri
,
playlist
,
error
);
success
=
spl_append_uri
(
playlist
,
uri
,
error
);
}
else
{
}
else
{
#ifdef ENABLE_DATABASE
#ifdef ENABLE_DATABASE
success
=
search_add_to_playlist
(
uri
,
playlist
,
nullptr
,
success
=
search_add_to_playlist
(
uri
,
playlist
,
nullptr
,
...
...
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