- neutrino: add mode_moviebrowser

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-09-12 21:38:16 +02:00
committed by Thilo Graf
parent 25102f6932
commit a82536d38a
3 changed files with 7 additions and 0 deletions

View File

@@ -4578,6 +4578,10 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
lastMode=mode;
mode=NeutrinoModes::mode_pic;
}
if((data & NeutrinoModes::mode_mask)== NeutrinoModes::mode_moviebrowser) {
lastMode=mode;
mode=NeutrinoModes::mode_moviebrowser;
}
if((data & NeutrinoModes::mode_mask)== NeutrinoModes::mode_ts) {
if(mode == NeutrinoModes::mode_radio)
frameBuffer->stopFrame();

View File

@@ -196,6 +196,7 @@ struct NeutrinoModes
mode_webtv = 9,
mode_upnp = 10,
mode_webradio = 11,
mode_moviebrowser = 12,
mode_mask = 0xFF,
norezap = 0x100
};

View File

@@ -105,6 +105,8 @@ const char* neutrinoMode_to_string(int mode)
return "MODE_UPNP";
case NeutrinoModes::mode_webradio:
return "MODE_WEBRADIO";
case NeutrinoModes::mode_moviebrowser:
return "MODE_MOVIEBROWSER";
case (int)NeutrinoModes::mode_mask:
return "MODE_MASK";
case (int)NeutrinoModes::norezap: