summaryrefslogtreecommitdiff
path: root/src/pipelines.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipelines.c')
-rw-r--r--src/pipelines.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/pipelines.c b/src/pipelines.c
index 5f73af3..3d32237 100644
--- a/src/pipelines.c
+++ b/src/pipelines.c
@@ -148,20 +148,16 @@ static gboolean create_udp_sinks(options_t* opt, GstElement* pipeline, GstElemen
static gboolean create_preview_elements(const char* preview_bin_desc, GstElement* pipeline, GstElement* tee)
{
GstElement *qr = sydra_create_element("queue", NULL);
- GstElement *to = sydra_create_element("textoverlay", NULL);
GstElement *preview_bin = sydra_create_bin_from_desc("preview sink", preview_bin_desc);
- if(!qr || !to || !preview_bin) {
+ if(!qr || !preview_bin) {
return FALSE;
}
log_printf(DEBUG, "preview path created successfully!");
- g_object_set(G_OBJECT(to), "text", " local ", "halignment", 1 , "valignment", 0,
- "shaded-background", TRUE, "font-desc", "Sans 18", NULL);
-
- gst_bin_add_many (GST_BIN(pipeline), qr, to, preview_bin, NULL);
- gst_element_link_many(qr, to, preview_bin, NULL);
+ gst_bin_add_many (GST_BIN(pipeline), qr, preview_bin, NULL);
+ gst_element_link(qr, preview_bin);
if(!sydra_link_request_static(tee, "src_%u", qr, "sink")) {
return FALSE;