mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
Remove dead code from CRCInput::getMsg_us()
The two events in question are posted in CInfoViewer::getEPG() and they're handled in CRemoteControl::handleMsg(). They are written to the high/low priority pipes only, so there should be no way that they end up in the event socket, which is what the code path in question here deals with. Apart from that, the type the buffer was casted to was completely wrong, so if this code was ever executed, it would have faulted.
This commit is contained in:
@@ -1289,20 +1289,9 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
|
||||
else
|
||||
printf("[neutrino] event - unknown initiatorID 0x%x\n", emsg.initiatorID);
|
||||
|
||||
switch (emsg.eventID) {
|
||||
case NeutrinoMessages::EVT_CURRENTEPG:
|
||||
case NeutrinoMessages::EVT_NEXTEPG:
|
||||
{
|
||||
CSectionsdClient::CurrentNextInfo *cn = (CSectionsdClient::CurrentNextInfo *) p;
|
||||
delete [] cn;
|
||||
p = NULL;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
if (!dont_delete_p) {
|
||||
delete[] p;
|
||||
p = NULL;
|
||||
}
|
||||
if (!dont_delete_p) {
|
||||
delete[] p;
|
||||
p = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user