summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2011-06-08 23:41:22 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2011-06-08 23:41:22 (GMT)
commit3235c649bbd318f94919512e4dec086c8fa08c8f (patch)
tree4311b692429671cea7d1d227e5b4137324038d45
parent7d00811baa81fd97088e8d5d24faba1ad705a9ae (diff)
using command line options for main parameters
-rw-r--r--src/gstdvbbackend.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gstdvbbackend.c b/src/gstdvbbackend.c
index db127d1..859b336 100644
--- a/src/gstdvbbackend.c
+++ b/src/gstdvbbackend.c
@@ -99,16 +99,16 @@ int main_loop(options_t* opt)
gst_object_unref(GST_OBJECT(loop));
return -1;
}
- g_object_set(G_OBJECT(source), "adapter", 0, NULL);
- g_object_set(G_OBJECT(source), "frontend", 0, NULL);
- g_object_set(G_OBJECT(source), "frequency", 514000000, NULL);
- g_object_set(G_OBJECT(source), "polarity", "H", NULL);
- g_object_set(G_OBJECT(source), "pids", "5010:5011", NULL);
+ g_object_set(G_OBJECT(source), "adapter", opt->adapter_, NULL);
+ g_object_set(G_OBJECT(source), "frontend", opt->frontend_, NULL);
+ g_object_set(G_OBJECT(source), "frequency", opt->frequency_, NULL);
+ g_object_set(G_OBJECT(source), "polarity", opt->polarity_, NULL);
+ g_object_set(G_OBJECT(source), "pids", opt->pids_, NULL);
g_object_set(G_OBJECT(source), "modulation", 1, NULL); // QAM 16
g_object_set(G_OBJECT(source), "trans-mode", 1, NULL); // 8k
g_object_set(G_OBJECT(source), "guard", 4, NULL); // AUTO
- int ret = streamer_init(&streamer, loop, NULL, "9001");
+ int ret = streamer_init(&streamer, loop, opt->host_, opt->port_);
if(ret) {
gst_object_unref(GST_OBJECT(pipeline));
gst_object_unref(GST_OBJECT(loop));