summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pipelines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipelines.c b/src/pipelines.c
index af25e6c..54400a9 100644
--- a/src/pipelines.c
+++ b/src/pipelines.c
@@ -61,7 +61,7 @@ struct media_elements {
GstElement* payloader_;
};
-static gboolean create_media_elements(struct media_elements *me, GstElement* pipeline, GstElement *rtp, uint32_t idx)
+static gboolean create_media_elements(struct media_elements *me, GstElement* pipeline, GstElement *rtp, uint32_t session)
{
char bin_name[32];
@@ -89,7 +89,7 @@ static gboolean create_media_elements(struct media_elements *me, GstElement* pip
gst_element_link(qe, me->payloader_);
char pad_name[32];
- snprintf(pad_name, sizeof(bin_name), "send_rtp_sink_%u", idx);
+ snprintf(pad_name, sizeof(bin_name), "send_rtp_sink_%u", session);
if(!sydra_link_request_static(me->tee_raw_, "src_%u", qr, "sink") ||
!sydra_link_request_static(me->tee_enc_, "src_%u", qe, "sink") ||
!sydra_link_static_request(me->payloader_, "src", rtp, pad_name)) {