mirror of https://github.com/asterisk/asterisk
Some places in Asterisk did not treat the formats on a stream as immutable when they are. The ast_stream_get_formats function is now const to enforce this and parts of Asterisk have been updated to take this into account. Some violations of this were also fixed along the way. An additional minor tweak is that streams are now allocated with an empty format capabilities structure removing the need in various places to check that one is present on the stream. ASTERISK-28846 Change-Id: I32f29715330db4ff48edd6f1f359090458a9bfbepull/18/head
parent
9ad3d2829c
commit
1c5e68580a
@ -0,0 +1,9 @@
|
|||||||
|
Subject: Core
|
||||||
|
|
||||||
|
The streams API function ast_stream_get_formats is
|
||||||
|
now defined as returning the format capabilities const.
|
||||||
|
This has always been the case but was never enforced
|
||||||
|
through the API itself. Any consumer of this API that
|
||||||
|
is not treating the formats as immutable should update
|
||||||
|
their code to create a new format capabilities and set
|
||||||
|
it on the stream instead.
|
Loading…
Reference in new issue