diff --git a/src/server/simpleslave.c b/src/server/simpleslave.c --- a/src/server/simpleslave.c +++ b/src/server/simpleslave.c @@ -155,6 +155,8 @@ if(updateConf){ // Variables needed for main loop int jobnum = 0; int framenum = 0; + int xres = 0; + int yres = 0; int slavekey = atoi(username); // @TODO: Make this more friendly char *urltoTar; /* Full URL to the server-side location of job#.tgz */ @@ -210,7 +212,7 @@ if(updateConf){ // request work if(DEBUG) fprintf(stderr,"Requesting work from %s...\n", hostname); - haveWork = _web_getwork(slavekey, password, &jobnum, &framenum); + haveWork = _web_getwork(slavekey, password, &jobnum, &framenum, &xres, &yres, outputExt); /* If we got a frame */ if(haveWork) @@ -277,8 +279,7 @@ if(updateConf){ fprintf(stderr,"Executing blender on file %s\n", pathtoJobfile); fprintf(stderr,"Directing output to file %s\n", pathtoOutput); } - - if(exec_blender(pathtoJobfile, pathtoRenderOutput, framenum)) + if(exec_blender(pathtoJobfile, pathtoRenderOutput, outputExt, xres, yres, framenum)) { fprintf(stderr,"Error running Blender. Check your installation and/or your PATH.\n"); _web_resetframe(slavekey, password, jobnum, framenum); // Unassign the frame on the server so other slaves can render it