summaryrefslogtreecommitdiff
path: root/main/channel_internal_api.c
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-02-16 07:28:33 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-02-16 09:10:02 -0600
commitf8f513d363fd10148976c592cbc8be860cda28ab (patch)
tree1ec0ac62c5300d992096708e8855ea6086b51f6d /main/channel_internal_api.c
parenta9c15a0e4c987d053b0ab43312946719d7655a3f (diff)
stream: Rename creates/destroys to allocs/frees
To be consistent with sdp implementation. Change-Id: I714e300939b4188f58ca66ce9d1e84b287009500
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;
}