summaryrefslogtreecommitdiff
path: root/sys/dvb/dvbbasebin.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>2014-07-05 03:08:00 -0400
committerReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>2014-07-28 00:05:18 -0400
commit8391112af5acebf2d9e16548930553256112f27b (patch)
tree60ac60e265eb0e6d8215c633a4d61612ffb15f2d /sys/dvb/dvbbasebin.c
parent13c63154b09c4bae0a42c28fb02c8475cd017102 (diff)
downloadgstreamer-plugins-bad-8391112af5acebf2d9e16548930553256112f27b.tar.gz
dvbsrc: make slof/lof1/lof2 settable properties
Allows proper tuning around high/low band boundaries when using non "standard" LNBs. Not all LNBs (Low noise block down converters) are made equal. This is particularly true for universal LNBFs, where, even though there are seemingly standard values for the local oscillator frequencies, these can vary from manufacturer to manufacturer and LNB model. Change also proxies the new LNB properties in dvbbasebin. https://bugzilla.gnome.org/show_bug.cgi?id=732818
Diffstat (limited to 'sys/dvb/dvbbasebin.c')
-rw-r--r--sys/dvb/dvbbasebin.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dvb/dvbbasebin.c b/sys/dvb/dvbbasebin.c
index 9361200b8..cb9764997 100644
--- a/sys/dvb/dvbbasebin.c
+++ b/sys/dvb/dvbbasebin.c
@@ -79,8 +79,10 @@ enum
PROP_PILOT,
PROP_ROLLOFF,
PROP_STREAM_ID,
- PROP_BANDWIDTH_HZ
- /* FILL ME */
+ PROP_BANDWIDTH_HZ,
+ PROP_LNB_SLOF,
+ PROP_LNB_LOF1,
+ PROP_LNB_LOF2
};
typedef struct
@@ -267,6 +269,9 @@ dvb_base_bin_class_init (DvbBaseBinClass * klass)
{PROP_ROLLOFF, "rolloff"},
{PROP_STREAM_ID, "stream-id"},
{PROP_BANDWIDTH_HZ, "bandwidth-hz"},
+ {PROP_LNB_SLOF, "lnb-slof"},
+ {PROP_LNB_LOF1, "lnb-lof1"},
+ {PROP_LNB_LOF2, "lnb-lof2"},
{0, NULL}
};
@@ -561,6 +566,9 @@ dvb_base_bin_set_property (GObject * object, guint prop_id,
case PROP_ROLLOFF:
case PROP_STREAM_ID:
case PROP_BANDWIDTH_HZ:
+ case PROP_LNB_SLOF:
+ case PROP_LNB_LOF1:
+ case PROP_LNB_LOF2:
/* FIXME: check if we can tune (state < PLAYING || program-numbers == "") */
g_object_set_property (G_OBJECT (dvbbasebin->dvbsrc), pspec->name, value);
break;
@@ -600,6 +608,9 @@ dvb_base_bin_get_property (GObject * object, guint prop_id,
case PROP_ROLLOFF:
case PROP_STREAM_ID:
case PROP_BANDWIDTH_HZ:
+ case PROP_LNB_SLOF:
+ case PROP_LNB_LOF1:
+ case PROP_LNB_LOF2:
g_object_get_property (G_OBJECT (dvbbasebin->dvbsrc), pspec->name, value);
break;
case PROP_PROGRAM_NUMBERS: