Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
416
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Merge requests
!6369
musicbrainz: small fix, refactor and plug leak
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
musicbrainz: small fix, refactor and plug leak
JohannesKauffmann/vlc2:false-null
into
master
Overview
3
Commits
5
Pipelines
3
Changes
1
Merged
Johannes Kauffmann
requested to merge
JohannesKauffmann/vlc2:false-null
into
master
2 months ago
Overview
3
Commits
5
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 1
046e1ac7
2 months ago
master (base)
and
latest version
latest version
2edddb01
5 commits,
2 months ago
version 1
046e1ac7
5 commits,
2 months ago
1 file
+
17
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/misc/webservices/musicbrainz.c
+
17
−
13
Options
@@ -55,22 +55,26 @@ static musicbrainz_lookup_t * musicbrainz_lookup(vlc_object_t *p_obj, const char
return
NULL
;
musicbrainz_lookup_t
*
p_lookup
=
musicbrainz_lookup_new
();
if
(
p_lookup
)
if
(
!
p_lookup
)
{
struct
json_helper_sys
sys
;
sys
.
logger
=
p_obj
->
logger
;
sys
.
buffer
=
p_buffer
;
sys
.
size
=
i_buffer
;
int
val
=
json_parse
(
&
sys
,
&
p_lookup
->
json
);
if
(
val
)
{
msg_Dbg
(
p_obj
,
"error: could not parse json!"
);
free
(
p_buffer
);
return
false
;
}
free
(
p_buffer
);
return
NULL
;
}
struct
json_helper_sys
sys
;
sys
.
logger
=
p_obj
->
logger
;
sys
.
buffer
=
p_buffer
;
sys
.
size
=
i_buffer
;
int
val
=
json_parse
(
&
sys
,
&
p_lookup
->
json
);
free
(
p_buffer
);
if
(
val
)
{
msg_Dbg
(
p_obj
,
"error: could not parse json!"
);
musicbrainz_lookup_release
(
p_lookup
);
return
NULL
;
}
return
p_lookup
;
}
Loading