mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-06 14:52:38 -07:00
main/file: fix translated-frame write loop to use current frame
write each translated frame from translator output. Resolves: #1797
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user