MT#55283 remove unneeded indirection

Change-Id: Ie9ab7a94875166b1d6f3ed0f334c95af8b197426
pull/2149/head
Richard Fuchs 2 weeks ago
parent 8c2c535aa8
commit abe9a3756d

@ -5446,8 +5446,7 @@ void media_subscription_free(struct media_subscription *p) {
g_free(p);
}
void call_media_free(struct call_media **mdp) {
struct call_media *md = *mdp;
void call_media_free(struct call_media *md) {
crypto_params_sdes_queue_clear(&md->sdes_in);
crypto_params_sdes_queue_clear(&md->sdes_out);
t_queue_clear(&md->streams);
@ -5504,7 +5503,7 @@ static void __call_free(call_t *c) {
while (c->medias.head) {
md = t_queue_pop_head(&c->medias);
call_media_free(&md);
call_media_free(md);
}
while (c->endpoint_maps.head) {

@ -953,7 +953,7 @@ int call_delete_branch(call_t *, const str *callid, const str *branch,
void call_destroy(call_t *);
struct call_media *call_media_new(call_t *call);
void call_media_free(struct call_media **mdp);
void call_media_free(struct call_media *);
enum call_stream_state call_stream_state_machine(struct packet_stream *);
void call_media_state_machine(struct call_media *m);
void call_media_unkernelize(struct call_media *media, const char *reason);

@ -386,8 +386,8 @@ static void end(void) {
g_hash_table_destroy(rtp_seq_ht);
t_queue_clear(&media_A->streams);
t_queue_clear(&media_B->streams);
call_media_free(&media_A);
call_media_free(&media_B);
call_media_free(media_A);
call_media_free(media_B);
t_hash_table_destroy(call.tags);
t_queue_clear(&call.medias);
if (ml_A)

Loading…
Cancel
Save