fix multistream, fix record streams

Origin commit data
------------------
Branch: ni/coolstream
Commit: 05a0e4d04a
Author: TangoCash <eric@loxat.de>
Date: 2022-09-12 (Mon, 12 Sep 2022)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2022-09-12 21:01:59 +02:00
committed by vanhofen
parent 85ee3ec49a
commit d76d10d148
7 changed files with 172 additions and 35 deletions

View File

@@ -4330,16 +4330,16 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
return messages_return::handled;
}
else if (msg == NeutrinoMessages::EVT_STREAM_START) {
int fd = (int) data;
printf("NeutrinoMessages::EVT_STREAM_START: fd %d\n", fd);
printf("NeutrinoMessages::EVT_STREAM_START\n");
wakeupFromStandby();
if (g_Radiotext)
g_Radiotext->setPid(0);
if (!CStreamManager::getInstance()->AddClient(fd)) {
close(fd);
g_RCInput->postMsg(NeutrinoMessages::EVT_STREAM_STOP, 0);
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
if (!CRecordManager::getInstance()->GetRecordCount()) {
CVFD::getInstance()->ShowIcon(FP_ICON_CAM1, false);
}
#endif
return messages_return::handled;
}
else if (msg == NeutrinoMessages::EVT_STREAM_STOP) {