struct tm* gmt = gmtime(&t);
w=desc.get_w(); h=desc.get_h();
//synfig::error("mng_trgt: init %d %d",w,h);
struct tm* gmt = gmtime(&t);
w=desc.get_w(); h=desc.get_h();
//synfig::error("mng_trgt: init %d %d",w,h);
if( file == NULL ) goto cleanup_on_error;
mng = mng_initialize((mng_ptr)file, mng_alloc_proc, mng_free_proc, MNG_NULL);
if(mng == MNG_NULL) goto cleanup_on_error;
if( file == NULL ) goto cleanup_on_error;
mng = mng_initialize((mng_ptr)file, mng_alloc_proc, mng_free_proc, MNG_NULL);
if(mng == MNG_NULL) goto cleanup_on_error;