Commit 03249ff5 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: Do not segfault if no real source could be found

parent 6c42bcb0
Pipeline #482 failed with stage
in 15 seconds
......@@ -893,14 +893,17 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
source_real = source_find_mount_raw(source->source);
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]);
config = config_get_config();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment