Skip to content

Commit

Permalink
frotend: obey whitelist on supportsDeliverySystem
Browse files Browse the repository at this point in the history
Since 26bfea1 we are setting all enabled types in setFrontendType.
So we can obey again the whitelist on supportsDeliverySystem previously disabled on 7c3a26b for multitype tuners only.
  • Loading branch information
athoik committed Mar 2, 2019
1 parent a36a739 commit b609cbe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/dvb/frontend.cpp
Expand Up @@ -2710,8 +2710,8 @@ int eDVBFrontend::isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm)
{
return 0;
}
can_handle_dvbs = supportsDeliverySystem(SYS_DVBS, !m_multitype);
can_handle_dvbs2 = supportsDeliverySystem(SYS_DVBS2, !m_multitype);
can_handle_dvbs = supportsDeliverySystem(SYS_DVBS, true);
can_handle_dvbs2 = supportsDeliverySystem(SYS_DVBS2, true);
if (parm.system == eDVBFrontendParametersSatellite::System_DVB_S2 && !can_handle_dvbs2)
{
return 0;
Expand Down Expand Up @@ -2749,15 +2749,15 @@ int eDVBFrontend::isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm)
#if DVB_API_VERSION > 5 || DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 6
if (m_dvbversion >= DVB_VERSION(5, 6))
{
can_handle_dvbc_annex_a = supportsDeliverySystem(SYS_DVBC_ANNEX_A, !m_multitype);
can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_C, !m_multitype);
can_handle_dvbc_annex_a = supportsDeliverySystem(SYS_DVBC_ANNEX_A, true);
can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_C, true);
}
else
{
can_handle_dvbc_annex_a = can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_A, !m_multitype); /* new value for SYS_DVB_ANNEX_AC */
can_handle_dvbc_annex_a = can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_A, true); /* new value for SYS_DVB_ANNEX_AC */
}
#else
can_handle_dvbc_annex_a = can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_AC, !m_multitype);
can_handle_dvbc_annex_a = can_handle_dvbc_annex_c = supportsDeliverySystem(SYS_DVBC_ANNEX_AC, true);
#endif
if (parm.system == eDVBFrontendParametersCable::System_DVB_C_ANNEX_A && !can_handle_dvbc_annex_a)
{
Expand All @@ -2773,8 +2773,8 @@ int eDVBFrontend::isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm)
{
eDVBFrontendParametersTerrestrial parm;
bool can_handle_dvbt, can_handle_dvbt2;
can_handle_dvbt = supportsDeliverySystem(SYS_DVBT, !m_multitype);
can_handle_dvbt2 = supportsDeliverySystem(SYS_DVBT2, !m_multitype);
can_handle_dvbt = supportsDeliverySystem(SYS_DVBT, true);
can_handle_dvbt2 = supportsDeliverySystem(SYS_DVBT2, true);
if (feparm->getDVBT(parm) < 0)
{
return 0;
Expand Down Expand Up @@ -2802,8 +2802,8 @@ int eDVBFrontend::isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm)
{
eDVBFrontendParametersATSC parm;
bool can_handle_atsc, can_handle_dvbc_annex_b;
can_handle_dvbc_annex_b = supportsDeliverySystem(SYS_DVBC_ANNEX_B, !m_multitype);
can_handle_atsc = supportsDeliverySystem(SYS_ATSC, !m_multitype);
can_handle_dvbc_annex_b = supportsDeliverySystem(SYS_DVBC_ANNEX_B, true);
can_handle_atsc = supportsDeliverySystem(SYS_ATSC, true);
if (feparm->getATSC(parm) < 0)
{
return 0;
Expand Down

0 comments on commit b609cbe

Please sign in to comment.