summaryrefslogtreecommitdiff
path: root/main/sdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/sdp.c')
-rw-r--r--main/sdp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/sdp.c b/main/sdp.c
index 7e283ebf8..e5c8803d5 100644
--- a/main/sdp.c
+++ b/main/sdp.c
@@ -848,8 +848,7 @@ static struct ast_stream *get_stream_from_m(const struct ast_sdp_a_lines *a_line
ast_free(codecs);
return NULL;
}
- ast_stream_set_data(stream, AST_STREAM_DATA_RTP_CODECS, codecs,
- (ast_stream_data_free_fn) rtp_codecs_free);
+ ast_stream_set_rtp_codecs(stream, codecs);
if (!m_line->port) {
/* Stream is declined. There may not be any attributes. */