summaryrefslogtreecommitdiff
path: root/src/sydra.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-03 23:57:59 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-03 23:57:59 +0200
commit84f7ba47c32bfe5f31ee733f911c3a158ad774bb (patch)
treeeb072341b3afd6fb5fef58bfc005ca069a63d6aa /src/sydra.c
parentadded git ignore file (diff)
updated options parser
Diffstat (limited to 'src/sydra.c')
-rw-r--r--src/sydra.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/sydra.c b/src/sydra.c
index 2c0816f..ec87af8 100644
--- a/src/sydra.c
+++ b/src/sydra.c
@@ -96,7 +96,7 @@ int main_loop(options_t* opt)
}
GError *error = NULL;
- source = gst_parse_bin_from_description(opt->src_bin_desc_, TRUE, &error);
+ source = gst_parse_bin_from_description("videotestsrc ! xvimagesink", TRUE, &error);
if(!source || error) {
log_printf(ERROR, "Source Bin Description Parser Error: %s", error ? error->message : "unknown");
g_error_free(error);
@@ -173,6 +173,15 @@ int main(int argc, char* argv[])
log_printf(NOTICE, "just started...");
options_parse_post(&opt);
+ if(opt.debug_)
+ options_print(&opt);
+
+
+ if(opt.appname_)
+ g_set_prgname (opt.appname_);
+ else
+ g_set_prgname (opt.progname_);
+
priv_info_t priv;
if(opt.username_)
if(priv_init(&priv, opt.username_, opt.groupname_)) {