mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
audioplayer.cpp: prevent possible segfault
This commit is contained in:
@@ -1164,10 +1164,12 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
|||||||
}
|
}
|
||||||
child = child->xmlNextNode;
|
child = child->xmlNextNode;
|
||||||
}
|
}
|
||||||
if (strcmp("audio/mpeg", type) == 0) skip = false;
|
if(type){
|
||||||
else if (strcmp("application/ogg", type) == 0) skip = false;
|
if (strcmp("audio/mpeg", type) == 0) skip = false;
|
||||||
else if (strcmp("mp3", type) == 0) skip = false;
|
else if (strcmp("application/ogg", type) == 0) skip = false;
|
||||||
else if (strcmp("application/mp3", type) == 0) skip = false;
|
else if (strcmp("mp3", type) == 0) skip = false;
|
||||||
|
else if (strcmp("application/mp3", type) == 0) skip = false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
url = xmlGetAttribute(element, urltag);
|
url = xmlGetAttribute(element, urltag);
|
||||||
name = xmlGetAttribute(element, nametag);
|
name = xmlGetAttribute(element, nametag);
|
||||||
|
Reference in New Issue
Block a user