mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
audioplayer: change scanXmlData() arguments order ...
switch url <-> name to get the same order as in other used functions (cherry picked from commite93c9416be
) Signed-off-by: Thilo Graf <dbt@novatux.de> Origin commit data ------------------ Commit:d75a3b0f58
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 (cherry picked from commite93c9416be
) Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1141,7 +1141,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();
|
||||
@@ -1152,10 +1152,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"
|
||||
|
||||
|
Reference in New Issue
Block a user