dvb/parsechannels: recognize additional bandwidths at zap parsing

Previously ignored 1.712, 5 and 10 MHz values are also valid
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2016-05-17 12:06:45 -07:00
parent 441072834e
commit 8e9e3f58c9

View file

@ -256,6 +256,12 @@ set_properties_for_channel (GstElement * dvbbasebin,
g_object_set (dvbbasebin, "bandwidth", 1, NULL);
else if (strcmp (val, "BANDWIDTH_6_MHZ") == 0)
g_object_set (dvbbasebin, "bandwidth", 2, NULL);
else if (strcmp (val, "BANDWIDTH_5_MHZ") == 0)
g_object_set (dvbbasebin, "bandwidth", 4, NULL);
else if (strcmp (val, "BANDWIDTH_10_MHZ") == 0)
g_object_set (dvbbasebin, "bandwidth", 5, NULL);
else if (strcmp (val, "BANDWIDTH_1_712_MHZ") == 0)
g_object_set (dvbbasebin, "bandwidth", 6, NULL);
else
g_object_set (dvbbasebin, "bandwidth", 3, NULL);