mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
zapit/src/zapit.cpp: handle PiP start/stop channels
This commit is contained in:
@@ -948,11 +948,15 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
|||||||
CZapitMessages::commandZaptoServiceID msgZaptoServiceID;
|
CZapitMessages::commandZaptoServiceID msgZaptoServiceID;
|
||||||
CZapitMessages::responseZapComplete msgResponseZapComplete;
|
CZapitMessages::responseZapComplete msgResponseZapComplete;
|
||||||
CBasicServer::receive_data(connfd, &msgZaptoServiceID, sizeof(msgZaptoServiceID));
|
CBasicServer::receive_data(connfd, &msgZaptoServiceID, sizeof(msgZaptoServiceID));
|
||||||
if(msgZaptoServiceID.record) {
|
if(msgZaptoServiceID.record)
|
||||||
msgResponseZapComplete.zapStatus = ZapForRecord(msgZaptoServiceID.channel_id);
|
msgResponseZapComplete.zapStatus = ZapForRecord(msgZaptoServiceID.channel_id);
|
||||||
} else {
|
#ifdef ENABLE_PIP
|
||||||
|
else if(msgZaptoServiceID.pip)
|
||||||
|
msgResponseZapComplete.zapStatus = StartPip(msgZaptoServiceID.channel_id);
|
||||||
|
#endif
|
||||||
|
else
|
||||||
msgResponseZapComplete.zapStatus = ZapTo(msgZaptoServiceID.channel_id, (rmsg.cmd == CZapitMessages::CMD_ZAPTO_SUBSERVICEID));
|
msgResponseZapComplete.zapStatus = ZapTo(msgZaptoServiceID.channel_id, (rmsg.cmd == CZapitMessages::CMD_ZAPTO_SUBSERVICEID));
|
||||||
}
|
|
||||||
CBasicServer::send_data(connfd, &msgResponseZapComplete, sizeof(msgResponseZapComplete));
|
CBasicServer::send_data(connfd, &msgResponseZapComplete, sizeof(msgResponseZapComplete));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1497,6 +1501,13 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
|||||||
SendCmdReady(connfd);
|
SendCmdReady(connfd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef ENABLE_PIP
|
||||||
|
case CZapitMessages::CMD_STOP_PIP:
|
||||||
|
StopPip();
|
||||||
|
SendCmdReady(connfd);
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case CZapitMessages::CMD_SB_LOCK_PLAYBACK:
|
case CZapitMessages::CMD_SB_LOCK_PLAYBACK:
|
||||||
/* hack. if standby true, dont blank video */
|
/* hack. if standby true, dont blank video */
|
||||||
standby = true;
|
standby = true;
|
||||||
|
Reference in New Issue
Block a user