add internetradio menu , patch by bazi98. THX :)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@598 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 8ec83692de
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-05-20 (Thu, 20 May 2010)

Origin message was:
------------------
-add internetradio menu , patch by bazi98. THX :)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@598 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
Jacek Jendrzej
2010-05-20 19:51:58 +00:00
parent 6f6f4484cb
commit 11f09acd5e
2 changed files with 7 additions and 20 deletions

View File

@@ -185,11 +185,11 @@ WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
// we borrow this from filebrowser
extern size_t CurlWriteToString(void *ptr, size_t size, size_t nmemb, void *data);
CAudioPlayerGui::CAudioPlayerGui(bool /*inetmode*/)
CAudioPlayerGui::CAudioPlayerGui(bool inetmode)
{
m_frameBuffer = CFrameBuffer::getInstance();
m_visible = false;
m_inetmode = false; //inetmode;//FIXME
m_inetmode = inetmode;
Init();
}
@@ -428,22 +428,7 @@ int CAudioPlayerGui::show()
}
}
if ( msg == CRCInput::RC_tv)
{
if (m_inetmode) {
m_inetmode = false;
m_radiolist = m_playlist;
m_playlist = m_filelist;
} else {
m_inetmode = true;
m_filelist = m_playlist;
m_playlist = m_radiolist;
}
Init();
clear_before_update = true;
update = true;
}
else if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop)
if (msg == CRCInput::RC_home || msg == CRCInput::RC_stop)
{
if (m_state != CAudioPlayerGui::STOP)
stop();