Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
03249ff5
Commit
03249ff5
authored
Nov 04, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Do not segfault if no real source could be found
parent
6c42bcb0
Pipeline
#482
failed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/stats.c
src/stats.c
+10
-7
No files found.
src/stats.c
View file @
03249ff5
...
...
@@ -893,13 +893,16 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
avl_tree_rlock
(
global
.
source_tree
);
source_real
=
source_find_mount_raw
(
source
->
source
);
history
=
playlist_render_xspf
(
source_real
->
history
);
if
(
history
)
xmlAddChild
(
xmlnode
,
history
);
metadata
=
xmlNewTextChild
(
xmlnode
,
NULL
,
XMLSTR
(
"metadata"
),
NULL
);
if
(
source_real
->
format
)
{
for
(
i
=
0
;
i
<
source_real
->
format
->
vc
.
comments
;
i
++
)
__add_metadata
(
metadata
,
source_real
->
format
->
vc
.
user_comments
[
i
]);
if
(
source_real
)
{
history
=
playlist_render_xspf
(
source_real
->
history
);
if
(
history
)
xmlAddChild
(
xmlnode
,
history
);
metadata
=
xmlNewTextChild
(
xmlnode
,
NULL
,
XMLSTR
(
"metadata"
),
NULL
);
if
(
source_real
->
format
)
{
for
(
i
=
0
;
i
<
source_real
->
format
->
vc
.
comments
;
i
++
)
__add_metadata
(
metadata
,
source_real
->
format
->
vc
.
user_comments
[
i
]);
}
}
avl_tree_unlock
(
global
.
source_tree
);
...
...
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