mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
zapit: add new event EVT_TUNE_COMPLETE
This commit is contained in:
@@ -143,9 +143,10 @@ struct NeutrinoMessages {
|
||||
EVT_ZAP_GOT_SUBSERVICES = CRCInput::RC_WithData + 19, /* data: (t_channel_id *) */
|
||||
EVT_ZAP_GOTAPIDS = CRCInput::RC_WithData + 20, /* data: (t_channel_id *) */
|
||||
EVT_ZAP_GOTPIDS = CRCInput::RC_WithData + 21, /* data: (t_channel_id *) */
|
||||
EVT_TUNE_COMPLETE = CRCInput::RC_WithData + 22, /* data: (t_channel_id *) */
|
||||
|
||||
/* neutrino */
|
||||
EVT_RECORDING_ENDED = CRCInput::RC_WithData + 22
|
||||
EVT_RECORDING_ENDED = CRCInput::RC_WithData + 23
|
||||
};
|
||||
enum
|
||||
{
|
||||
|
@@ -71,6 +71,7 @@ class CZapitClient:public CBasicClient
|
||||
EVT_SDT_CHANGED,
|
||||
EVT_SERVICES_CHANGED,
|
||||
EVT_PMT_CHANGED,
|
||||
EVT_TUNE_COMPLETE,
|
||||
LAST_EVENT_MARKER // <- no actual event, needed by pzapit
|
||||
};
|
||||
|
||||
|
@@ -504,9 +504,12 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay
|
||||
live_channel_id = current_channel->getChannelID();
|
||||
SaveSettings(false);
|
||||
|
||||
if(!TuneChannel(live_fe, newchannel, transponder_change))
|
||||
if(!TuneChannel(live_fe, newchannel, transponder_change)) {
|
||||
t_channel_id chid = 0;
|
||||
SendEvent(CZapitClient::EVT_TUNE_COMPLETE, &chid, sizeof(t_channel_id));
|
||||
return false;
|
||||
|
||||
}
|
||||
SendEvent(CZapitClient::EVT_TUNE_COMPLETE, &live_channel_id, sizeof(t_channel_id));
|
||||
|
||||
if (current_channel->getServiceType() == ST_NVOD_REFERENCE_SERVICE) {
|
||||
current_is_nvod = true;
|
||||
|
Reference in New Issue
Block a user