Changeset 6131 for trunk/ippTools/src/p2insertPendingFrames.c
- Timestamp:
- Jan 21, 2006, 1:27:12 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/p2insertPendingFrames.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2insertPendingFrames.c
r6111 r6131 6 6 // NOTE this function converts the rawFrames to pendingFrames AND inserts them 7 7 // this is useful since the table must be locked the whole time, to get the versions 8 bool p2insertPendingFrames (p2Config *config, psArray *rawFrames) {8 bool p2insertPendingFrames(p2Config *config, psArray *rawFrames) { 9 9 10 10 psMetadata *where = psMetadataAlloc(); … … 58 58 } 59 59 60 p2PendingExpInsertObject(config->database, pendingExposure); 60 if (!p2PendingExpInsertObject(config->database, pendingExposure)) { 61 psError(PS_ERR_UNKNOWN, false, "database access failed"); 62 return false; 63 } 61 64 62 65 for (int i = 0; i < pendingImages->n; i++) { 63 p2PendingImfileInsertObject(config->database, 64 pendingImages->data[i]); 66 if (!p2PendingImfileInsertObject(config->database, 67 pendingImages->data[i])) { 68 psError(PS_ERR_UNKNOWN, false, "database access failed"); 69 return false; 70 } 65 71 } 66 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
