mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix a check in bridge_native_rtp which determined if attaching the framehook failed or not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -249,7 +249,7 @@ static int native_rtp_bridge_framehook_attach(struct ast_bridge_channel *bridge_
|
|||||||
ast_channel_lock(bridge_channel->chan);
|
ast_channel_lock(bridge_channel->chan);
|
||||||
data->id = ast_framehook_attach(bridge_channel->chan, &hook);
|
data->id = ast_framehook_attach(bridge_channel->chan, &hook);
|
||||||
ast_channel_unlock(bridge_channel->chan);
|
ast_channel_unlock(bridge_channel->chan);
|
||||||
if (!data->id < 0) {
|
if (data->id < 0) {
|
||||||
ao2_cleanup(data);
|
ao2_cleanup(data);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user