[lua]: chunkqueue: fix file<->tempfile handling
parent
25222e9b1c
commit
053739a46d
|
@ -195,9 +195,9 @@ static int _lua_chunkqueue_add_file(lua_State *L, gboolean tempfile) {
|
|||
}
|
||||
|
||||
if (tempfile) {
|
||||
li_chunkqueue_append_file_fd(cq, NULL, start, length, fd);
|
||||
} else {
|
||||
li_chunkqueue_append_tempfile_fd(cq, g_string_new_len(filename, len), start, length, fd);
|
||||
} else {
|
||||
li_chunkqueue_append_file_fd(cq, NULL, start, length, fd);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue