Commit 41a786b8 authored by Julian Rother's avatar Julian Rother
Browse files

thumbnail: Check rename for errors

parent 03ba7991
......@@ -100,7 +100,8 @@ int main(int argc, char *argv[])
if (av_write_trailer(mux))
goto fail;
avio_closep(&mux->pb);
rename(tmp, dest);
if (rename(tmp, dest))
goto fail;
unlink(tmp);
ping_job(jobid, "finished", "{\"log\": \"%s\"}", get_avlogbuf());
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment