mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
audioplayer: change scanXmlData() arguments order ...
switch url <-> name to get the same order as in other used functions
Origin commit data
------------------
Branch: ni/coolstream
Commit: f31f8c5bc8
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-27 (Tue, 27 Jun 2017)
Origin message was:
------------------
- audioplayer: change scanXmlData() arguments order ...
switch url <-> name to get the same order as in other used functions
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1177,7 +1177,7 @@ void CAudioPlayerGui::readDir_ic(void)
|
||||
{
|
||||
xmlDocPtr answer_parser = parseXml(answer.c_str());
|
||||
scanBox->hide();
|
||||
scanXmlData(answer_parser, "server_name", "listen_url", "bitrate", true);
|
||||
scanXmlData(answer_parser, "listen_url", "server_name", "bitrate", true);
|
||||
}
|
||||
else
|
||||
scanBox->hide();
|
||||
@@ -1188,10 +1188,10 @@ void CAudioPlayerGui::readDir_ic(void)
|
||||
void CAudioPlayerGui::scanXmlFile(std::string filename)
|
||||
{
|
||||
xmlDocPtr answer_parser = parseXmlFile(filename.c_str());
|
||||
scanXmlData(answer_parser, "name", "url");
|
||||
scanXmlData(answer_parser, "url", "name");
|
||||
}
|
||||
|
||||
void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag, const char *urltag, const char *bitratetag, bool usechild)
|
||||
void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *urltag, const char *nametag, const char *bitratetag, bool usechild)
|
||||
{
|
||||
#define IC_typetag "server_type"
|
||||
|
||||
|
@@ -176,7 +176,7 @@ class CAudioPlayerGui : public CMenuTarget
|
||||
/**
|
||||
* Processes a loaded XML file/data of internet audiostreams or playlists
|
||||
*/
|
||||
void scanXmlData(xmlDocPtr answer_parser, const char *nametag, const char *urltag, const char *bitratetag = NULL, bool usechild = false);
|
||||
void scanXmlData(xmlDocPtr answer_parser, const char *urltag, const char *nametag, const char *bitratetag = NULL, bool usechild = false);
|
||||
|
||||
/**
|
||||
* Reads the icecast directory (XML file) and calls scanXmlData
|
||||
|
Reference in New Issue
Block a user