From 13bdfc4c50e2fde123f5d232fa00eced659b6beb Mon Sep 17 00:00:00 2001 From: satbaby Date: Wed, 9 Feb 2011 11:43:30 +0000 Subject: [PATCH] -reduce globale git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1132 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/audioplayer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 0715a58e2..ca90ac890 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -114,12 +114,8 @@ extern cVideo * videoDecoder; #define AUDIOPLAYER_END_SCRIPT CONFIGDIR "/audioplayer.end" #define DEFAULT_RADIOSTATIONS_XMLFILE CONFIGDIR "/radio-stations.xml" -const long int GET_PLAYLIST_TIMEOUT = 10; const char RADIO_STATION_XML_FILE[] = {DEFAULT_RADIOSTATIONS_XMLFILE}; -const std::string icecasturl = "http://dir.xiph.org/yp.xml"; -const long int GET_ICECAST_TIMEOUT = 90; // list is about 500kB! - CAudiofileExt::CAudiofileExt() : CAudiofile(), firstChar('\0') { @@ -988,6 +984,7 @@ void CAudioPlayerGui::addUrl2Playlist(const char *url, const char *name, const t void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, const time_t tim) { CURL *curl_handle; struct MemoryStruct chunk; + const long int GET_PLAYLIST_TIMEOUT = 10; printf("CAudioPlayerGui::processPlaylistUrl (%s, %s)\n", url, name); chunk.memory=NULL; /* we expect realloc(NULL, size) to work */ @@ -1073,6 +1070,9 @@ void CAudioPlayerGui::processPlaylistUrl(const char *url, const char *name, cons void CAudioPlayerGui::readDir_ic(void) { + const std::string icecasturl = "http://dir.xiph.org/yp.xml"; + const long int GET_ICECAST_TIMEOUT = 90; // list is about 500kB! + std::string answer=""; std::cout << "[readDir_ic] IC URL: " << icecasturl << std::endl; CURL *curl_handle;