mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
stream: Make ast_stream_topology_create_from_format_cap() allow NULL cap.
Change-Id: Ie29760c49c25d7022ba2124698283181a0dd5d08
This commit is contained in:
@@ -852,14 +852,10 @@ void ast_channel_nativeformats_set(struct ast_channel *chan,
|
||||
return;
|
||||
}
|
||||
|
||||
if ((!ast_channel_is_multistream(chan)) || !value) {
|
||||
if (!ast_channel_is_multistream(chan) || !value) {
|
||||
struct ast_stream_topology *new_topology;
|
||||
|
||||
if (!value) {
|
||||
new_topology = ast_stream_topology_alloc();
|
||||
} else {
|
||||
new_topology = ast_stream_topology_create_from_format_cap(value);
|
||||
}
|
||||
new_topology = ast_stream_topology_create_from_format_cap(value);
|
||||
ast_channel_internal_set_stream_topology(chan, new_topology);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user