mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
stream: Add media stream topology definition and API
This change adds the media stream topology definition and API for accessing and using it. Some refactoring of the stream was also done. ASTERISK-26786 Change-Id: Ic930232d24d5ad66dcabc14e9b359e0ff8e7f568
This commit is contained in:
@@ -268,6 +268,7 @@ int ast_format_cap_append_from_cap(struct ast_format_cap *dst, const struct ast_
|
||||
{
|
||||
int idx, res = 0;
|
||||
|
||||
/* NOTE: The streams API is dependent on the formats being in "preference" order */
|
||||
for (idx = 0; (idx < AST_VECTOR_SIZE(&src->preference_order)) && !res; ++idx) {
|
||||
struct format_cap_framed *framed = AST_VECTOR_GET(&src->preference_order, idx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user