Skip to content

Commit

Permalink
require output file for async animated gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Aug 15, 2010
1 parent bc54aa1 commit 32f9128
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/async_animated_gif.cpp
Expand Up @@ -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.";
Expand Down

0 comments on commit 32f9128

Please sign in to comment.