add 'none' hierarchy
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Apr 2006 13:51:02 +0000 (13:51 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Apr 2006 13:51:02 +0000 (13:51 +0000)
lib/dvb/frontend.cpp

index 6896110cb8ccb1a6b96d04e99a156e60f19b5372..1fa3cafe4c398dea32049f637adb131ddbe96cc8 100644 (file)
@@ -803,6 +803,9 @@ void fillDictWithTerrestrialData(PyObject *dict, const FRONTENDPARAMETERS &parm)
        PutToDict(dict, "guard_interval", tmp);
        switch (parm_u_ofdm_hierarchy_information)
        {
+               case HIERARCHY_NONE:
+                       tmp = "HIERARCHY_NONE";
+                       break;
                case HIERARCHY_1:
                        tmp = "HIERARCHY_1";
                        break;
@@ -1468,6 +1471,9 @@ RESULT eDVBFrontend::prepare_terrestrial(const eDVBFrontendParametersTerrestrial
        }
        switch (feparm.hierarchy)
        {
+               case eDVBFrontendParametersTerrestrial::Hierarchy::HNone:
+                       parm_u_ofdm_hierarchy_information = HIERARCHY_NONE;
+                       break;
                case eDVBFrontendParametersTerrestrial::Hierarchy::H1:
                        parm_u_ofdm_hierarchy_information = HIERARCHY_1;
                        break;