mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
Merge "rtp_engine: Skip useless self-assignment in ast_rtp_engine_unload_format." into 11
This commit is contained in:
@@ -2289,7 +2289,9 @@ int ast_rtp_engine_unload_format(const struct ast_format *format)
|
|||||||
if (ast_format_cmp(&ast_rtp_mime_types[x].payload_type.format, format) == AST_FORMAT_CMP_EQUAL) {
|
if (ast_format_cmp(&ast_rtp_mime_types[x].payload_type.format, format) == AST_FORMAT_CMP_EQUAL) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ast_rtp_mime_types[y] = ast_rtp_mime_types[x];
|
if (x != y) {
|
||||||
|
ast_rtp_mime_types[y] = ast_rtp_mime_types[x];
|
||||||
|
}
|
||||||
y++;
|
y++;
|
||||||
}
|
}
|
||||||
mime_types_len = y;
|
mime_types_len = y;
|
||||||
|
|||||||
Reference in New Issue
Block a user