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
fba13bd5
Commit
fba13bd5
authored
Jun 25, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_queue: simplify error handler
Return early on error, save one level of indent.
parent
68f75955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
playlist_queue.c
src/playlist_queue.c
+8
-9
No files found.
src/playlist_queue.c
View file @
fba13bd5
...
...
@@ -103,16 +103,15 @@ playlist_open_into_queue(const char *uri, struct playlist *dest)
struct
input_stream
*
is
;
struct
playlist_provider
*
playlist
=
playlist_mapper_open
(
uri
,
&
is
);
if
(
playlist
!=
NULL
)
{
enum
playlist_result
result
=
playlist_load_into_queue
(
uri
,
playlist
,
dest
);
playlist_plugin_close
(
playlist
);
if
(
playlist
==
NULL
)
return
PLAYLIST_RESULT_NO_SUCH_LIST
;
if
(
is
!=
NULL
)
input_stream_close
(
is
);
enum
playlist_result
result
=
playlist_load_into_queue
(
uri
,
playlist
,
dest
);
playlist_plugin_close
(
playlist
);
return
result
;
}
if
(
is
!=
NULL
)
input_stream_close
(
is
);
return
PLAYLIST_RESULT_NO_SUCH_LIST
;
return
result
;
}
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