dvb: parsechannels: add delsys property

Signed-off-by: Stefan Ringel <linuxtv@stefanringel.de>

https://bugzilla.gnome.org/show_bug.cgi?id=709414
This commit is contained in:
Stefan Ringel 2014-04-11 15:14:17 +02:00 committed by Edward Hervey
parent 7228e92574
commit f348944246

View file

@ -35,6 +35,8 @@
#include "parsechannels.h"
#include <linux/dvb/frontend.h>
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);