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
dadf3d84
Commit
dadf3d84
authored
Sep 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/SoundCloud: implicit SoundCloudJsonData initialization
parent
941a9284
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
SoundCloudPlaylistPlugin.cxx
src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
+3
-6
No files found.
src/playlist/plugins/SoundCloudPlaylistPlugin.cxx
View file @
dadf3d84
...
...
@@ -103,10 +103,10 @@ static const char *const key_str[] = {
struct
SoundCloudJsonData
{
int
key
;
char
*
stream_url
;
char
*
stream_url
=
nullptr
;
long
duration
;
char
*
title
;
int
got_url
;
/* nesting level of last stream_url */
char
*
title
=
nullptr
;
int
got_url
=
0
;
/* nesting level of last stream_url */
std
::
forward_list
<
DetachedSong
>
songs
;
};
...
...
@@ -326,9 +326,6 @@ soundcloud_open_uri(const char *uri, Mutex &mutex, Cond &cond)
}
SoundCloudJsonData
data
;
data
.
got_url
=
0
;
data
.
title
=
nullptr
;
data
.
stream_url
=
nullptr
;
yajl_handle
hand
=
yajl_alloc
(
&
parse_callbacks
,
nullptr
,
&
data
);
int
ret
=
soundcloud_parse_json
(
u
,
hand
,
mutex
,
cond
);
...
...
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