MT#55283 split up sdp_attr_append_other()

No-op.

Change-Id: I999a6733ddbb18380568164d04a49539dd4421e2
rfuchs/test
Richard Fuchs 7 months ago committed by Donat Zenichev
parent 5fc8af25fb
commit 9903b413c5

@ -1813,16 +1813,22 @@ void sdp_orig_free(sdp_origin *o) {
g_slice_free1(sizeof(*o), o);
}
// Duplicate all OTHER attributes from the source (parsed SDP attributes list) into
// Duplicate all attributes from the source (parsed SDP attributes list) into
// the destination (string-format attribute list)
static void sdp_attr_append_other(sdp_attr_q *dst, struct sdp_attributes *src) {
__auto_type attrs = attr_list_get_by_id(src, ATTR_OTHER);
static void sdp_attr_append(sdp_attr_q *dst, attributes_q *attrs) {
if (!attrs)
return;
for (__auto_type ll = attrs ? attrs->head : NULL; ll; ll = ll->next) {
__auto_type attr = ll->data;
struct sdp_attr *ac = sdp_attr_dup(attr);
t_queue_push_tail(dst, ac);
}
}
// Duplicate all OTHER attributes from the source (parsed SDP attributes list) into
// the destination (string-format attribute list)
static void sdp_attr_append_other(sdp_attr_q *dst, struct sdp_attributes *src) {
sdp_attr_append(dst, attr_list_get_by_id(src, ATTR_OTHER));
}
/* XXX split this function up */
int sdp_streams(const sdp_sessions_q *sessions, sdp_streams_q *streams, sdp_ng_flags *flags) {

Loading…
Cancel
Save