Changeset 3584


Ignore:
Timestamp:
Mar 25, 2013, 6:47:35 PM (12 years ago)
Author:
ldelgass
Message:

Revert video command to return zero length image response if ffmpeg fails so
the client can deal with the error. However, continue to log an error on the
server end if ffmpeg fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/FlowCmd.cpp

    r3579 r3584  
    18491849    if (data.size() == 0) {
    18501850        ERROR("ffmpeg returned 0 bytes");
    1851         Tcl_AppendResult(interp, "Couldn't create movie file",
    1852                          (char *)NULL);
    1853         return TCL_ERROR;
    1854     } else {
    1855         sprintf(cmd,"nv>image -type movie -token \"%s\" -bytes %lu\n",
    1856                 token, (unsigned long)data.size());
    1857         NanoVis::sendDataToClient(cmd, data.bytes(), data.size());
    1858         return TCL_OK;
    1859     }
     1851    }
     1852    // Send zero length to client so it can deal with error
     1853    sprintf(cmd,"nv>image -type movie -token \"%s\" -bytes %lu\n",
     1854            token, (unsigned long)data.size());
     1855    NanoVis::sendDataToClient(cmd, data.bytes(), data.size());
     1856    return TCL_OK;
    18601857}
    18611858
Note: See TracChangeset for help on using the changeset viewer.