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
changes/78/78/1
Joshua Colp 12 years ago
parent f3fcf0aa2e
commit 3a15fb4f47

@ -249,7 +249,7 @@ static int native_rtp_bridge_framehook_attach(struct ast_bridge_channel *bridge_
ast_channel_lock(bridge_channel->chan);
data->id = ast_framehook_attach(bridge_channel->chan, &hook);
ast_channel_unlock(bridge_channel->chan);
if (!data->id < 0) {
if (data->id < 0) {
ao2_cleanup(data);
return -1;
}

Loading…
Cancel
Save