Changeset 36580 for trunk/ppBackground/src/ppBackgroundStack.c
- Timestamp:
- Mar 7, 2014, 6:08:39 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ppBackground/src/ppBackgroundStack.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppBackground/src/ppBackgroundStack.c
r36579 r36580 18 18 ppBackgroundErrorRegister(); 19 19 20 ppBackground Data *data = ppBackgroundDataInit(&argc, argv);20 ppBackgroundStackData *data = ppBackgroundStackDataInit(&argc, argv); 21 21 if (!data) { 22 22 goto DIE; 23 23 } 24 24 25 if (!ppBackground Arguments(data, argc, argv)) {25 if (!ppBackgroundStackArguments(data, argc, argv)) { 26 26 goto DIE; 27 27 } 28 28 29 if (!ppBackground Camera(data)) {29 if (!ppBackgroundStackCamera(data)) { 30 30 goto DIE; 31 31 } 32 32 33 if (!ppBackground Loop(data)) {33 if (!ppBackgroundStackLoop(data)) { 34 34 goto DIE; 35 35 } … … 39 39 psExit exitValue = ppBackgroundExitCode(PS_EXIT_SUCCESS); // Exit code 40 40 41 if (data && data->stats && data->statsFile) { 42 psString stats = psMetadataConfigFormat(data->stats); // Statistics to output 43 if (!stats || strlen(stats) == 0) { 44 psError(PPBACKGROUND_ERR_IO, false, "Unable to format statistics file"); 45 } else if (fprintf(data->statsFile, "%s", stats) != strlen(stats)) { 46 psError(PPBACKGROUND_ERR_IO, true, "Unable to write statistics file"); 47 } 48 psFree(stats); 49 if (fclose(data->statsFile) == EOF) { 50 psError(PPBACKGROUND_ERR_IO, true, "Unable to close statistics file"); 51 } 52 data->statsFile = NULL; 53 exitValue = ppBackgroundExitCode(exitValue); 54 } 41 /* if (data && data->stats && data->statsFile) { */ 42 /* psString stats = psMetadataConfigFormat(data->stats); // Statistics to output */ 43 /* if (!stats || strlen(stats) == 0) { */ 44 /* psError(PPBACKGROUND_ERR_IO, false, "Unable to format statistics file"); */ 45 /* } else if (fprintf(data->statsFile, "%s", stats) != strlen(stats)) { */ 46 /* psError(PPBACKGROUND_ERR_IO, true, "Unable to write statistics file"); */ 47 /* } */ 48 /* psFree(stats); */ 49 /* if (fclose(data->statsFile) == EOF) { */ 50 /* psError(PPBACKGROUND_ERR_IO, true, "Unable to close statistics file"); */ 51 /* } */ 52 /* data->statsFile = NULL; */ 53 /* exitValue = ppBackgroundExitCode(exitValue); */ 54 /* } */ 55 55 56 56 if (data) {
Note:
See TracChangeset
for help on using the changeset viewer.
