mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 13ab1ebc8a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1253,6 +1253,11 @@ int CHDDMenuHandler::checkDevice(std::string dev)
|
||||
int percent = 0, opercent = 0;
|
||||
char buf[256] = { 0 };
|
||||
|
||||
bool loop;
|
||||
uint64_t timeoutEnd;
|
||||
neutrino_msg_t msg;
|
||||
neutrino_msg_data_t data;
|
||||
|
||||
std::string devname = "/dev/" + dev;
|
||||
|
||||
printf("CHDDMenuHandler::checkDevice: dev %s\n", dev.c_str());
|
||||
@@ -1322,7 +1327,16 @@ int CHDDMenuHandler::checkDevice(std::string dev)
|
||||
|
||||
progress->showGlobalStatus(100);
|
||||
progress->showStatusMessageUTF(buf);
|
||||
sleep(2);
|
||||
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
||||
loop = true;
|
||||
while (loop)
|
||||
{
|
||||
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
|
||||
if (msg == CRCInput::RC_timeout || msg == CRCInput::RC_ok || msg == CRCInput::RC_home)
|
||||
loop = false;
|
||||
}
|
||||
|
||||
progress->hide();
|
||||
delete progress;
|
||||
|
||||
|
Reference in New Issue
Block a user