Skip to content
Browse files

require output file for async animated gifs

  • Loading branch information...
1 parent bc54aa1 commit 32f91282a1ddd26f8e315b4f7ef6ea842260df12 @pkrumins committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/async_animated_gif.cpp
View
3 src/async_animated_gif.cpp
@@ -115,6 +115,9 @@ AsyncAnimatedGif::Push(unsigned char *data_buf, int x, int y, int w, int h)
if (tmp_dir.empty())
throw "Tmp dir is not set. Use .setTmpDir to set it before pushing.";
+ if (output_file.empty())
+ throw "Output file is not set. Use .setOutputFile to set it before pushing.";
+
push_request *push_req = (push_request *)malloc(sizeof(*push_req));
if (!push_req)
throw "malloc in AsyncAnimatedGif::Push failed.";

0 comments on commit 32f9128

Please sign in to comment.
Something went wrong with that request. Please try again.