zapitclient: initalize all var from commandZaptoServiceID struckt

Origin commit data
------------------
Branch: ni/coolstream
Commit: 35c87ebee0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-08-14 (Wed, 14 Aug 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-08-14 22:56:58 +02:00
parent b47be770e2
commit 3ec63c1573
2 changed files with 11 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ class CZapitMessages
bool record;
bool pip;
bool epg;
commandZaptoServiceID():channel_id(0),record(false),pip(false),epg(false){}
};
struct commandSetAudioChannel

View File

@@ -152,6 +152,7 @@ unsigned int CZapitClient::zapTo_serviceID(const t_channel_id channel_id)
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SERVICEID, (const char *) & msg, sizeof(msg));
@@ -225,6 +226,9 @@ unsigned int CZapitClient::zapTo_subServiceID(const t_channel_id channel_id)
CZapitMessages::commandZaptoServiceID msg;
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SUBSERVICEID, (const char *) & msg, sizeof(msg));
@@ -242,6 +246,9 @@ void CZapitClient::zapTo_serviceID_NOWAIT(const t_channel_id channel_id)
CZapitMessages::commandZaptoServiceID msg;
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SERVICEID_NOWAIT, (const char *) & msg, sizeof(msg));
@@ -254,6 +261,9 @@ void CZapitClient::zapTo_subServiceID_NOWAIT(const t_channel_id channel_id)
CZapitMessages::commandZaptoServiceID msg;
msg.channel_id = channel_id;
msg.record = false;
msg.pip = false;
msg.epg = false;
send(CZapitMessages::CMD_ZAPTO_SUBSERVICEID_NOWAIT, (const char *) & msg, sizeof(msg));