summaryrefslogtreecommitdiff
path: root/main/channel_internal_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel_internal_api.c')
-rw-r--r--main/channel_internal_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/channel_internal_api.c b/main/channel_internal_api.c
index 235b99604..1934eb9a4 100644
--- a/main/channel_internal_api.c
+++ b/main/channel_internal_api.c
@@ -848,7 +848,7 @@ static void channel_set_default_streams(struct ast_channel *chan)
void ast_channel_internal_set_stream_topology(struct ast_channel *chan,
struct ast_stream_topology *topology)
{
- ast_stream_topology_destroy(chan->stream_topology);
+ ast_stream_topology_free(chan->stream_topology);
chan->stream_topology = topology;
channel_set_default_streams(chan);
}
@@ -871,7 +871,7 @@ void ast_channel_nativeformats_set(struct ast_channel *chan,
struct ast_stream_topology *new_topology;
if (!value) {
- new_topology = ast_stream_topology_create();
+ new_topology = ast_stream_topology_alloc();
} else {
new_topology = ast_stream_topology_create_from_format_cap(value);
}
@@ -1804,7 +1804,7 @@ struct ast_stream_topology *ast_channel_set_stream_topology(struct ast_channel *
* it even if its empty.
*/
if (!topology) {
- new_topology = ast_stream_topology_create();
+ new_topology = ast_stream_topology_alloc();
} else {
new_topology = topology;
}