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
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,8 @@ int main(int argc, char *argv[]) ...@@ -100,7 +100,8 @@ int main(int argc, char *argv[])
if (av_write_trailer(mux)) if (av_write_trailer(mux))
goto fail; goto fail;
avio_closep(&mux->pb); avio_closep(&mux->pb);
rename(tmp, dest); if (rename(tmp, dest))
goto fail;
unlink(tmp); unlink(tmp);
ping_job(jobid, "finished", "{\"log\": \"%s\"}", get_avlogbuf()); ping_job(jobid, "finished", "{\"log\": \"%s\"}", get_avlogbuf());
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment