mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
add pugixml
This commit is contained in:
@@ -1114,7 +1114,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
|
||||
if (answer_parser != NULL) {
|
||||
xmlNodePtr element = xmlDocGetRootElement(answer_parser);
|
||||
element = element->xmlChildrenNode;
|
||||
element = xmlChildrenNode(element);
|
||||
xmlNodePtr element_tmp = element;
|
||||
if (element == NULL) {
|
||||
printf("[openFilebrowser] No valid XML File.\n");
|
||||
@@ -1124,7 +1124,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
// count # of entries
|
||||
while (element) {
|
||||
maxProgress++;
|
||||
element = element->xmlNextNode;
|
||||
element = xmlNextNode(element);
|
||||
}
|
||||
element = element_tmp;
|
||||
long listPos = -1;
|
||||
@@ -1150,7 +1150,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
|
||||
if (usechild) {
|
||||
const char *type = NULL;
|
||||
xmlNodePtr child = element->xmlChildrenNode;
|
||||
xmlNodePtr child = xmlChildrenNode(element);
|
||||
while (child) {
|
||||
if (strcmp(xmlGetName(child), nametag) == 0)
|
||||
name = xmlGetData(child);
|
||||
@@ -1163,7 +1163,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
if (ptr)
|
||||
bitrate = atoi(ptr);
|
||||
}
|
||||
child = child->xmlNextNode;
|
||||
child = xmlNextNode(child);
|
||||
}
|
||||
if(type){
|
||||
if (strcmp("audio/mpeg", type) == 0) skip = false;
|
||||
@@ -1190,7 +1190,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
|
||||
else
|
||||
addUrl2Playlist(url, name, bitrate);
|
||||
}
|
||||
element = element->xmlNextNode;
|
||||
element = xmlNextNode(element);
|
||||
g_RCInput->getMsg(&msg, &data, 0);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user