mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	stream: Make ast_stream_topology_create_from_format_cap() allow NULL cap.
Change-Id: Ie29760c49c25d7022ba2124698283181a0dd5d08
This commit is contained in:
		| @@ -345,11 +345,9 @@ struct ast_stream_topology *ast_stream_topology_create_from_format_cap( | ||||
| 	struct ast_stream_topology *topology; | ||||
| 	enum ast_media_type type; | ||||
|  | ||||
| 	ast_assert(cap != NULL); | ||||
|  | ||||
| 	topology = ast_stream_topology_alloc(); | ||||
| 	if (!topology) { | ||||
| 		return NULL; | ||||
| 	if (!topology || !cap || !ast_format_cap_count(cap)) { | ||||
| 		return topology; | ||||
| 	} | ||||
|  | ||||
| 	for (type = AST_MEDIA_TYPE_UNKNOWN + 1; type < AST_MEDIA_TYPE_END; type++) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user