mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
7228e92574
commit
f348944246
1 changed files with 10 additions and 0 deletions
|
@ -35,6 +35,8 @@
|
||||||
|
|
||||||
#include "parsechannels.h"
|
#include "parsechannels.h"
|
||||||
|
|
||||||
|
#include <linux/dvb/frontend.h>
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (dvb_base_bin_debug);
|
GST_DEBUG_CATEGORY_EXTERN (dvb_base_bin_debug);
|
||||||
#define GST_CAT_DEFAULT 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) {
|
if (strcmp (type, "terrestrial") == 0) {
|
||||||
gchar *val;
|
gchar *val;
|
||||||
|
|
||||||
|
g_object_set (dvbbasebin, "delsys", SYS_DVBT, NULL);
|
||||||
|
|
||||||
val = g_hash_table_lookup (params, "inversion");
|
val = g_hash_table_lookup (params, "inversion");
|
||||||
if (strcmp (val, "INVERSION_OFF") == 0)
|
if (strcmp (val, "INVERSION_OFF") == 0)
|
||||||
g_object_set (dvbbasebin, "inversion", 0, NULL);
|
g_object_set (dvbbasebin, "inversion", 0, NULL);
|
||||||
|
@ -342,6 +346,8 @@ set_properties_for_channel (GstElement * dvbbasebin,
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
|
g_object_set (dvbbasebin, "delsys", SYS_DVBS, NULL);
|
||||||
|
|
||||||
val = g_hash_table_lookup (params, "polarity");
|
val = g_hash_table_lookup (params, "polarity");
|
||||||
if (val)
|
if (val)
|
||||||
g_object_set (dvbbasebin, "polarity", val, NULL);
|
g_object_set (dvbbasebin, "polarity", val, NULL);
|
||||||
|
@ -360,6 +366,8 @@ set_properties_for_channel (GstElement * dvbbasebin,
|
||||||
} else if (strcmp (type, "cable") == 0) {
|
} else if (strcmp (type, "cable") == 0) {
|
||||||
gchar *val;
|
gchar *val;
|
||||||
|
|
||||||
|
g_object_set (dvbbasebin, "delsys", SYS_DVBC_ANNEX_A, NULL);
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
val = g_hash_table_lookup (params, "symbol-rate");
|
val = g_hash_table_lookup (params, "symbol-rate");
|
||||||
if (val)
|
if (val)
|
||||||
|
@ -412,6 +420,8 @@ set_properties_for_channel (GstElement * dvbbasebin,
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
|
g_object_set (dvbbasebin, "delsys", SYS_ATSC, NULL);
|
||||||
|
|
||||||
val = g_hash_table_lookup (params, "modulation");
|
val = g_hash_table_lookup (params, "modulation");
|
||||||
if (strcmp (val, "QAM_64") == 0)
|
if (strcmp (val, "QAM_64") == 0)
|
||||||
g_object_set (dvbbasebin, "modulation", 3, NULL);
|
g_object_set (dvbbasebin, "modulation", 3, NULL);
|
||||||
|
|
Loading…
Reference in a new issue