Skip to content
Snippets Groups Projects
Commit 41a786b8 authored by Julian Rother's avatar Julian Rother
Browse files

thumbnail: Check rename for errors

parent 03ba7991
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment