From: Tinet-mucw Date: Sat, 28 Feb 2026 01:35:08 +0000 (-0800) Subject: main/file: fix translated-frame write loop to use current frame X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=86b694f6f3ae1eb4f0b2cbfedb8107ff3c060b04;p=thirdparty%2Fasterisk.git main/file: fix translated-frame write loop to use current frame write each translated frame from translator output. Resolves: #1797 --- diff --git a/main/file.c b/main/file.c index 6363387fd7..c71e80d167 100644 --- a/main/file.c +++ b/main/file.c @@ -300,7 +300,7 @@ int ast_writestream(struct ast_filestream *fs, struct ast_frame *f) /* the translator may have returned multiple frames, so process them */ for (cur = trf; cur; cur = AST_LIST_NEXT(cur, frame_list)) { - if ((res = fs->fmt->write(fs, trf))) { + if ((res = fs->fmt->write(fs, cur))) { ast_log(LOG_WARNING, "Translated frame write failed\n"); break; }