MT#61856 monologue_publish: check output of `monologue_open_ports()`

Check what it actually returns and accordingly return -1
in case of error to the `monologue_publish()` caller.

Change-Id: Ibcf8e71bc1234787654667b04afd43db5cebe5bb
pull/2105/head
Donat Zenichev 3 months ago
parent 0faa777e17
commit fb6d6508f2

@ -4476,7 +4476,11 @@ int monologue_publish(struct call_monologue *ml, sdp_streams_q *streams, sdp_ng_
sdp_sp_move(&media->sp, sp);
}
monologue_open_ports(ml);
if (!monologue_open_ports(ml)) {
ilog(LOG_ERR, "Error allocating media ports");
return -1;
}
monologue_media_start(ml);
return 0;

Loading…
Cancel
Save