re-add a fix that got lost with a recent change
authorRussell Bryant <russell@russellbryant.com>
Tue, 22 Apr 2008 20:25:56 +0000 (20:25 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 22 Apr 2008 20:25:56 +0000 (20:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114548 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index cb57ac6..fbb14d8 100644 (file)
@@ -2286,7 +2286,7 @@ static void ast_read_generator_actions(struct ast_channel *chan, struct ast_fram
                 * avoidance not to work in deeper functions
                 */
                ast_channel_unlock(chan);
-               res = generate(chan, tmp, f->datalen, f->samples);
+               res = generate(chan, tmp, f->datalen, samples);
                ast_channel_lock(chan);
                chan->generatordata = tmp;
                if (res) {