|
|
|
|
@ -624,6 +624,8 @@ static void call_ng_flags_flags(struct sdp_ng_flags *out, str *s, void *dummy) {
|
|
|
|
|
if (call_ng_flags_prefix(out, s, "codec-transcode-", call_ng_flags_codec_list,
|
|
|
|
|
&out->codec_transcode))
|
|
|
|
|
return;
|
|
|
|
|
if (call_ng_flags_prefix(out, s, "codec-mask-", call_ng_flags_codec_ht, out->codec_mask))
|
|
|
|
|
return;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
ilog(LOG_WARN, "Unknown flag encountered: '" STR_FORMAT "'",
|
|
|
|
|
@ -637,6 +639,7 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu
|
|
|
|
|
|
|
|
|
|
ZERO(*out);
|
|
|
|
|
out->codec_strip = g_hash_table_new_full(str_hash, str_equal, str_slice_free, NULL);
|
|
|
|
|
out->codec_mask = g_hash_table_new_full(str_hash, str_equal, str_slice_free, NULL);
|
|
|
|
|
|
|
|
|
|
out->trust_address = trust_address_def;
|
|
|
|
|
out->dtls_passive = dtls_passive_def;
|
|
|
|
|
@ -703,11 +706,13 @@ static void call_ng_process_flags(struct sdp_ng_flags *out, bencode_item_t *inpu
|
|
|
|
|
call_ng_flags_list(out, dict, "offer", call_ng_flags_codec_list, &out->codec_offer);
|
|
|
|
|
#ifdef WITH_TRANSCODING
|
|
|
|
|
call_ng_flags_list(out, dict, "transcode", call_ng_flags_codec_list, &out->codec_transcode);
|
|
|
|
|
call_ng_flags_list(out, dict, "mask", call_ng_flags_codec_ht, out->codec_mask);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
static void call_ng_free_flags(struct sdp_ng_flags *flags) {
|
|
|
|
|
g_hash_table_destroy(flags->codec_strip);
|
|
|
|
|
g_hash_table_destroy(flags->codec_mask);
|
|
|
|
|
g_queue_clear_full(&flags->codec_offer, str_slice_free);
|
|
|
|
|
g_queue_clear_full(&flags->codec_transcode, str_slice_free);
|
|
|
|
|
}
|
|
|
|
|
|