mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
dvb/parsechannels: parse DVB-T hierarchy from v5 config file
Avoids relying on the H/W default when the information can be extracted from the configuration file.
This commit is contained in:
parent
fd96f42ac4
commit
572c9154db
1 changed files with 13 additions and 0 deletions
|
@ -235,6 +235,18 @@ gst_dvb_base_bin_conf_set_delsys (GstElement * dvbbasebin,
|
||||||
property, kf, channel_name, key, delsys, 0);
|
property, kf, channel_name, key, delsys, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
gst_dvb_base_bin_conf_set_hierarchy (GstElement * dvbbasebin,
|
||||||
|
const gchar * property, GKeyFile * kf, const gchar * channel_name,
|
||||||
|
const gchar * key)
|
||||||
|
{
|
||||||
|
const gchar *hierarchies[] = {
|
||||||
|
"NONE", "1", "2", "4", "AUTO", NULL
|
||||||
|
};
|
||||||
|
return gst_dvb_base_bin_conf_set_property_from_string_array (dvbbasebin,
|
||||||
|
property, kf, channel_name, key, hierarchies, 4);
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_dvb_base_bin_conf_set_modulation (GstElement * dvbbasebin,
|
gst_dvb_base_bin_conf_set_modulation (GstElement * dvbbasebin,
|
||||||
const gchar * property, GKeyFile * kf, const gchar * channel_name,
|
const gchar * property, GKeyFile * kf, const gchar * channel_name,
|
||||||
|
@ -264,6 +276,7 @@ GstDvbV5ChannelsConfToPropertyMap dvbv5_prop_map[] = {
|
||||||
{"INVERSION", "inversion", gst_dvb_base_bin_conf_set_inversion},
|
{"INVERSION", "inversion", gst_dvb_base_bin_conf_set_inversion},
|
||||||
{"GUARD_INTERVAL", "guard", gst_dvb_base_bin_conf_set_guard},
|
{"GUARD_INTERVAL", "guard", gst_dvb_base_bin_conf_set_guard},
|
||||||
{"TRANSMISSION_MODE", "trans-mode", gst_dvb_base_bin_conf_set_trans_mode},
|
{"TRANSMISSION_MODE", "trans-mode", gst_dvb_base_bin_conf_set_trans_mode},
|
||||||
|
{"HIERARCHY", "hierarchy", gst_dvb_base_bin_conf_set_hierarchy},
|
||||||
{"MODULATION", "modulation", gst_dvb_base_bin_conf_set_modulation},
|
{"MODULATION", "modulation", gst_dvb_base_bin_conf_set_modulation},
|
||||||
{"CODE_RATE_HP", "code-rate-hp", gst_dvb_base_bin_conf_set_code_rate},
|
{"CODE_RATE_HP", "code-rate-hp", gst_dvb_base_bin_conf_set_code_rate},
|
||||||
{"CODE_RATE_LP", "code-rate-lp", gst_dvb_base_bin_conf_set_code_rate},
|
{"CODE_RATE_LP", "code-rate-lp", gst_dvb_base_bin_conf_set_code_rate},
|
||||||
|
|
Loading…
Reference in a new issue