Fix slinfactory logic when dealing with frames coming in that may already be in the signed linear format.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Joshua Colp 18 years ago
parent 11d6381ec0
commit dec3b2e618

@ -72,11 +72,13 @@ int ast_slinfactory_feed(struct ast_slinfactory *sf, struct ast_frame *f)
sf->format = f->subclass;
}
}
if (!(begin_frame = ast_translate(sf->trans, f, 0)) || !(duped_frame = ast_frdup(begin_frame)))
return 0;
} else {
if (!(duped_frame = ast_frdup(f)))
return 0;
}
if ((sf->trans && (!(begin_frame = ast_translate(sf->trans, f, 0)))) || (!(duped_frame = ast_frdup(begin_frame))))
return 0;
x = 0;
AST_LIST_TRAVERSE(&sf->queue, frame_ptr, frame_list)
x++;

Loading…
Cancel
Save