zapit/frontend: move setName() function away from danger zone

Origin commit data
------------------
Branch: ni/coolstream
Commit: fdd712c19f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-11-01 (Sun, 01 Nov 2020)

Origin message was:
------------------
- zapit/frontend: move setName() function away from danger zone

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2020-11-01 21:29:38 +01:00
parent 8003a13b98
commit a2600c5a47

View File

@@ -1332,12 +1332,6 @@ uint32_t CFrontend::getFEBandwidth(fe_bandwidth_t bandwidth)
return bandwidth_hz;
}
void CFrontend::setName(const char* _name)
{
memset(info.name, '\0', sizeof(info.name));
snprintf(info.name, sizeof(info.name)-1, "%s", _name);
}
bool CFrontend::buildProperties(const FrontendParameters *feparams, struct dtv_properties& cmdseq, bool can_multistream)
{
fe_pilot_t pilot = PILOT_OFF;
@@ -2634,6 +2628,12 @@ bool CFrontend::isHybrid(void)
return false;
}
void CFrontend::setName(const char* _name)
{
memset(info.name, '\0', sizeof(info.name));
snprintf(info.name, sizeof(info.name)-1, "%s", _name);
}
bool CFrontend::supportsDelivery(delivery_system_t delsys)
{
return (deliverySystemMask & delsys) != 0;