summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pipelines-launch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pipelines-launch.c b/src/pipelines-launch.c
index 56050b3..003863b 100644
--- a/src/pipelines-launch.c
+++ b/src/pipelines-launch.c
@@ -50,6 +50,12 @@ GstElement* create_pipeline(options_t* opt)
log_printf(ERROR, "Creating pipeline failed!");
return NULL;
}
+ GstElement *main = sydra_create_bin_from_desc("main", opt->pipeline_, TRUE);
+ if(!main) {
+ log_printf(ERROR, "Creating main pipeline failed!");
+ return NULL;
+ }
+ gst_bin_add(GST_BIN(pipeline), main);
log_printf(INFO, "pipeline created successfully!");
return pipeline;