diff --git a/sys/dvb/parsechannels.c b/sys/dvb/parsechannels.c index 4a29af77d5..0b1d506503 100644 --- a/sys/dvb/parsechannels.c +++ b/sys/dvb/parsechannels.c @@ -35,6 +35,8 @@ #include "parsechannels.h" +#include + GST_DEBUG_CATEGORY_EXTERN (dvb_base_bin_debug); #define GST_CAT_DEFAULT dvb_base_bin_debug @@ -226,6 +228,8 @@ set_properties_for_channel (GstElement * dvbbasebin, if (strcmp (type, "terrestrial") == 0) { gchar *val; + g_object_set (dvbbasebin, "delsys", SYS_DVBT, NULL); + val = g_hash_table_lookup (params, "inversion"); if (strcmp (val, "INVERSION_OFF") == 0) g_object_set (dvbbasebin, "inversion", 0, NULL); @@ -342,6 +346,8 @@ set_properties_for_channel (GstElement * dvbbasebin, ret = TRUE; + g_object_set (dvbbasebin, "delsys", SYS_DVBS, NULL); + val = g_hash_table_lookup (params, "polarity"); if (val) g_object_set (dvbbasebin, "polarity", val, NULL); @@ -360,6 +366,8 @@ set_properties_for_channel (GstElement * dvbbasebin, } else if (strcmp (type, "cable") == 0) { gchar *val; + g_object_set (dvbbasebin, "delsys", SYS_DVBC_ANNEX_A, NULL); + ret = TRUE; val = g_hash_table_lookup (params, "symbol-rate"); if (val) @@ -412,6 +420,8 @@ set_properties_for_channel (GstElement * dvbbasebin, ret = TRUE; + g_object_set (dvbbasebin, "delsys", SYS_ATSC, NULL); + val = g_hash_table_lookup (params, "modulation"); if (strcmp (val, "QAM_64") == 0) g_object_set (dvbbasebin, "modulation", 3, NULL);