Skip to content

Commit

Permalink
fixe merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotyze committed Sep 10, 2024
1 parent fd747d0 commit 1ec680a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion modules/avcodec/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int avcodec_h264_fmtp_enc(struct mbuf *mb, const struct sdp_format *fmt,

conf_get_str(conf_cur(), "avcodec_profile_level_id",
profile_level_id, sizeof(profile_level_id));
conf_get_str(conf_cur(), "video_fmtp_append",
conf_get_str(conf_cur(), "avcodec_fmtp_append",
append, sizeof(append));

if (str_isset(profile_level_id)) {
Expand Down
2 changes: 1 addition & 1 deletion modules/ice/ice.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static int cand_gather_relayed(struct mnat_media *m, struct comp *comp,
err = turnc_alloc(&turnc, stun_conf(icem_stun(m->icem)),
IPPROTO_UDP, comp->sock, layer, &m->sess->srv,
username, password,
60, NULL, turnc_handler, comp);
60, turnc_handler, comp);
if (err)
return err;

Expand Down
6 changes: 3 additions & 3 deletions modules/turn/turn.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static void turn_handler(int err, uint16_t scode, const char *reason,
err = turnc_alloc(&other->turnc, NULL,
IPPROTO_UDP, other->sock, LAYER,
&m->sess->srv, m->sess->user, m->sess->pass,
TURN_DEFAULT_LIFETIME, &token,
TURN_DEFAULT_LIFETIME,
turn_handler, other);
}
else
Expand Down Expand Up @@ -250,7 +250,7 @@ static void tcp_estab_handler(void *arg)
err = turnc_alloc(&comp->turnc, NULL, IPPROTO_TCP, comp->tc, 0,
&m->sess->srv,
m->sess->user, m->sess->pass,
TURN_DEFAULT_LIFETIME, NULL, turn_handler, comp);
TURN_DEFAULT_LIFETIME, turn_handler, comp);
if (err) {
m->sess->estabh(err, 0, NULL, m->sess->arg);
}
Expand Down Expand Up @@ -284,7 +284,7 @@ static int media_start(struct mnat_sess *sess, struct mnat_media *m)
err |= turnc_alloc(&comp->turnc, NULL,
IPPROTO_UDP, comp->sock, LAYER,
&sess->srv, sess->user, sess->pass,
TURN_DEFAULT_LIFETIME, NULL,
TURN_DEFAULT_LIFETIME,
turn_handler, comp);
break;

Expand Down
7 changes: 1 addition & 6 deletions src/bfcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,7 @@ int bfcp_start(struct bfcp *bfcp)
return 0;
}

floorctrl = sdp_media_rattr(bfcp->sdpm, "floorctrl");

if (floorctrl )
if (str_str(floorctrl, "s")) {
bfcp_send_hello(bfcp);
}
err = bfcp_send_hello(bfcp);

return err;
}
16 changes: 9 additions & 7 deletions src/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ static int update_streams(struct call *call)
else
video_stop(call->video);

if (stream_is_ready(video_strm(call->slides)))
if (stream_is_ready(video_strm(call->slides))){
err |= bfcp_start(call->bfcp);
err |= video_update(call->slides, call->peer_uri);
}
else
video_stop(call->slides);

Expand Down Expand Up @@ -856,6 +858,12 @@ int call_streams_alloc(struct call *call)
return err;

if (str_isset(call->cfg->bfcp.proto)) {
err = bfcp_alloc(&call->bfcp, call->sdp,
&call->cfg->bfcp, !call->got_offer,
acc->mnat, call->mnats);
if (err)
return err;

err = video_alloc(&call->slides, &call->streaml,
&strm_prm,
call->cfg, call->sdp,
Expand All @@ -869,12 +877,6 @@ int call_streams_alloc(struct call *call)

if (err)
return err;

err = bfcp_alloc(&call->bfcp, call->sdp,
&call->cfg->bfcp, !call->got_offer,
acc->mnat, call->mnats);
if (err)
return err;
}
}

Expand Down

0 comments on commit 1ec680a

Please sign in to comment.