{
if (!STRCASECMP(config, "S-Video"))
{
- logger->info(TAG, "Switching to S-Video as Connection=%s", config);
+ logger->info(TAG, "Switching to S-Video as Connection={}", config);
video->setConnection(Video::SVIDEO);
} else if (!STRCASECMP(config, "HDMI"))
{
- logger->info(TAG, "Switching to HDMI as Connection=%s", config);
+ logger->info(TAG, "Switching to HDMI as Connection={}", config);
video->setConnection(Video::HDMI);
} else if (!STRCASECMP(config, "HDMI3D"))
{
- logger->info(TAG, "Switching to HDMI3D as Connection=%s", config);
+ logger->info(TAG, "Switching to HDMI3D as Connection={}", config);
video->setConnection(Video::HDMI3D);
}
else
{
- logger->info(TAG, "Switching to RGB/Composite as Connection=%s", config);
+ logger->info(TAG, "Switching to RGB/Composite as Connection={}", config);
video->setConnection(Video::COMPOSITERGB);
}
delete[] config;
// handleCommand(Input::OK);
// handleCommand(Input::THREE);
// handleCommand(Input::SIX);
-// handleCommand(Input::OK);
// handleCommand(Input::UP);
+// handleCommand(Input::OK);
+// handleCommand(Input::OK);
// handleCommand(Input::PLAY);
// handleCommand(Input::DOWN);
// handleCommand(Input::DOWN);
void PlayerVideoRec::threadStop()
{
playerThreadMutex.lock();
+
+ if (!playerThread.joinable()) // restartAtFrame sometimes calls threadStop when it's not running
+ {
+ playerThreadMutex.unlock();
+ return;
+ }
+
threadReqQuit = true;
playerThreadCond.notify_one();
playerThreadMutex.unlock();
RecInfo::~RecInfo()
{
- LogNT::getInstance()->info(TAG, "Deleting recinfo: %lu, %s", numComponents, summary);
+ LogNT::getInstance()->info(TAG, "Deleting recinfo: {}, {}", numComponents, summary);
if (summary) delete[] summary;
for (ULONG i = 0; i < numComponents; i++)
{
- LogNT::getInstance()->info(TAG, "i: %lu, languages[i]=%p:%s", i, languages[i], languages[i]);
- LogNT::getInstance()->info(TAG, "i: %lu, descripti[i]=%p:%s", i, descriptions[i], descriptions[i]);
+ LogNT::getInstance()->info(TAG, "i: {}, languages[i]={:p}:{}", i, (void*)languages[i], languages[i]);
+ LogNT::getInstance()->info(TAG, "i: {}, descripti[i]={:p}:{}", i, (void*)descriptions[i], descriptions[i]);
if (languages[i]) delete[] (languages[i]);
if (descriptions[i]) delete[] (descriptions[i]);
}
}
- logger->debug(TAG, "init omx clock {:#x} {:#x}", (void*)this, omx_clock);
+ logger->debug(TAG, "init omx clock {:p} {}", (void*)this, omx_clock);
clock_references++;
clock_mutex.unlock();
return 1;
i++;
}
- logger->debug(TAG, "WaitForEvent waited too long {:#x} {:#x}",handle,event);
+ logger->debug(TAG, "WaitForEvent waited too long {:p} {:#x}",(void*)handle,event);
return 0;
}