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:
Joshua Colp
2013-07-23 22:32:39 +00:00
parent f3fcf0aa2e
commit 3a15fb4f47

View File

@@ -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;
}