TT#14008 fix codec mask logic if no masking info is present

fixes a glib warning

Change-Id: I8c79231e52a88b9fd2af7c3acf1be6b994e86876
changes/54/21254/1
Richard Fuchs 8 years ago
parent 4d2d788c43
commit 7de16e104c

@ -971,8 +971,8 @@ void codec_rtp_payload_types(struct call_media *media, struct call_media *other_
continue;
}
}
if (!mask_all && !g_hash_table_lookup(mask, &pt->encoding)
&& !g_hash_table_lookup(mask, &pt->encoding_with_params))
if (!mask_all && (!mask || !g_hash_table_lookup(mask, &pt->encoding))
&& (!mask || !g_hash_table_lookup(mask, &pt->encoding_with_params)))
__rtp_payload_type_add(media, other_media, pt);
else
__rtp_payload_type_add_send(other_media, pt);

Loading…
Cancel
Save