disable shoutcast, when shoutcast_dev_id is empty

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1f224be672
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-06 (Sat, 06 Aug 2016)

Origin message was:
------------------
- disable shoutcast, when shoutcast_dev_id is empty

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-08-06 22:29:26 +02:00
parent 875a08f014
commit 460f7a93b3
3 changed files with 6 additions and 5 deletions

View File

@@ -641,12 +641,10 @@ int CAudioPlayerGui::show()
InputSelector.addItem(new CMenuForwarder(
LOCALE_AUDIOPLAYER_ADD_IC, true, NULL, InetRadioInputChanger,
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
if(g_settings.shoutcast_dev_id != "XXXXXXXXXXXXXXXX"){
sprintf(cnt, "%d", ++count);
InputSelector.addItem(new CMenuForwarder(
LOCALE_AUDIOPLAYER_ADD_SC, true, NULL, InetRadioInputChanger,
sprintf(cnt, "%d", ++count);
InputSelector.addItem(new CMenuForwarder(
LOCALE_AUDIOPLAYER_ADD_SC, g_settings.shoutcast_enabled, NULL, InetRadioInputChanger,
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
}
//InputSelector.addItem(GenericMenuSeparator);
hide();