From a14bc47072eb9ed796c2ba2400a73c9c57e2f534 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 2 Oct 2014 03:40:18 +0200 Subject: added some names for bins --- src/pipelines.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/pipelines.c') diff --git a/src/pipelines.c b/src/pipelines.c index 7434f0a..114a2c5 100644 --- a/src/pipelines.c +++ b/src/pipelines.c @@ -60,7 +60,7 @@ struct av_elements { static GstElement* create_avsend_src(const char* desc, GstElement* pipeline) { - GstElement* src = sydra_create_bin_from_desc("AV source", desc, FALSE); + GstElement* src = sydra_create_bin_from_desc("AV source bin", desc, FALSE); if(!src) return NULL; gst_bin_add(GST_BIN(pipeline), src); @@ -91,7 +91,7 @@ static gboolean create_avsend_elements(struct av_elements *ave, GstElement* pipe GstElement *qr = sydra_create_element("queue", NULL); char bin_name[32]; - snprintf(bin_name, sizeof(bin_name), "%s encoder", ave->name_); + snprintf(bin_name, sizeof(bin_name), "%s encoder bin", ave->name_); ave->encdec_ = sydra_create_bin_from_desc(bin_name, ave->encdec_str_, TRUE); ave->tee_enc_ = sydra_create_element("tee", NULL); GstElement *qe = sydra_create_element("queue", NULL); @@ -122,7 +122,7 @@ static gboolean create_avsend_elements(struct av_elements *ave, GstElement* pipe static GstElement* create_avrecv_sink(const char* desc, GstElement* pipeline) { - GstElement* sink = sydra_create_bin_from_desc("AV sink", desc, FALSE); + GstElement* sink = sydra_create_bin_from_desc("AV sink bin", desc, FALSE); if(!sink) return NULL; gst_bin_add(GST_BIN(pipeline), sink); @@ -153,7 +153,7 @@ static gboolean create_avrecv_elements(struct av_elements *ave, GstElement* pipe GstElement *qr = sydra_create_element("queue", NULL); char bin_name[32]; - snprintf(bin_name, sizeof(bin_name), "%s decoder", ave->name_); + snprintf(bin_name, sizeof(bin_name), "%s decoder bin", ave->name_); ave->encdec_ = sydra_create_bin_from_desc(bin_name, ave->encdec_str_, TRUE); ave->tee_enc_ = sydra_create_element("tee", NULL); GstElement *qe = sydra_create_element("queue", NULL); @@ -271,7 +271,7 @@ static gboolean create_udp_sources(options_t* opt, GstElement* pipeline, GstElem static gboolean create_preview_elements(const char* preview_bin_desc, GstElement* pipeline, GstElement* tee) { GstElement *qr = sydra_create_element("queue", NULL); - GstElement *preview_bin = sydra_create_bin_from_desc("preview sink", preview_bin_desc, TRUE); + GstElement *preview_bin = sydra_create_bin_from_desc("preview sink bin", preview_bin_desc, TRUE); if(!qr || !preview_bin) { return FALSE; @@ -303,13 +303,13 @@ static gboolean create_recorder_elements(options_t* opt, GstElement* pipeline, s GstElement *ev = NULL, *tv = ve->tee_enc_; if(opt->video_enc_rec_) { - ev = sydra_create_bin_from_desc("record video encoder", opt->video_enc_rec_, TRUE); + ev = sydra_create_bin_from_desc("record video encoder bin", opt->video_enc_rec_, TRUE); if(!ev) return FALSE; tv = ve->tee_raw_; } GstElement *ea = NULL, *ta = ae->tee_enc_; if(opt->audio_enc_rec_) { - ea = sydra_create_bin_from_desc("record audio encoder", opt->audio_enc_rec_, TRUE); + ea = sydra_create_bin_from_desc("record audio encoder bin", opt->audio_enc_rec_, TRUE); if(!ea) return FALSE; ta = ae->tee_raw_; } @@ -353,7 +353,7 @@ static gboolean create_recorder_elements(options_t* opt, GstElement* pipeline, s GstElement* create_sender_pipeline(options_t* opt, struct udp_sinks *udp) { - GstElement *pipeline = gst_pipeline_new ("sydra"); + GstElement *pipeline = gst_pipeline_new ("sydra-sender"); if(!pipeline) { log_printf(ERROR, "Creating pipeline failed!"); return NULL; @@ -434,7 +434,7 @@ static void rtpbin_pad_added(GstElement* rtp, GstPad* pad, gpointer user_data) GstElement* create_receiver_pipeline(options_t* opt, struct udp_sources *udp) { - GstElement *pipeline = gst_pipeline_new ("sydra"); + GstElement *pipeline = gst_pipeline_new ("sydra-receiver"); if(!pipeline) { log_printf(ERROR, "Creating pipeline failed!"); return NULL; -- cgit v1.2.3