mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Resolve Solaris build issues and add some API documentation.
(issue #14981) Reported by: snuffy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1540,7 +1540,8 @@ int ast_rtp_instance_make_compatible(struct ast_channel *chan, struct ast_rtp_in
|
||||
|
||||
if (!peer_instance || peer_instance->engine != instance->engine) {
|
||||
ast_channel_unlock(peer);
|
||||
peer_instance = (ao2_ref(peer_instance, -1), NULL);
|
||||
ao2_ref(peer_instance, -1);
|
||||
peer_instance = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -1548,7 +1549,8 @@ int ast_rtp_instance_make_compatible(struct ast_channel *chan, struct ast_rtp_in
|
||||
|
||||
ast_channel_unlock(peer);
|
||||
|
||||
peer_instance = (ao2_ref(peer_instance, -1), NULL);
|
||||
ao2_ref(peer_instance, -1);
|
||||
peer_instance = NULL;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user