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
8341a9f7
Commit
8341a9f7
authored
Jul 25, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queue_save: simplify get_song()
Don't try db_get_song() if the URI has a scheme.
parent
b233c145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
queue_save.c
src/queue_save.c
+3
-10
No files found.
src/queue_save.c
View file @
8341a9f7
...
...
@@ -45,16 +45,9 @@ queue_save(FILE *fp, const struct queue *queue)
static
struct
song
*
get_song
(
const
char
*
uri
)
{
struct
song
*
song
;
song
=
db_get_song
(
uri
);
if
(
song
!=
NULL
)
return
song
;
if
(
uri_has_scheme
(
uri
))
return
song_remote_new
(
uri
);
return
NULL
;
return
uri_has_scheme
(
uri
)
?
song_remote_new
(
uri
)
:
db_get_song
(
uri
);
}
void
...
...
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