Changeset 6214 for trunk/ippTools/src/p2searchDoneFrames.c
- Timestamp:
- Jan 26, 2006, 1:48:43 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/p2searchDoneFrames.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2searchDoneFrames.c
r6210 r6214 5 5 PS_ASSERT_PTR_NON_NULL(config, NULL); 6 6 7 psMetadata *where = psMetadataAlloc (); 8 9 if (config->camera_name != NULL) { 10 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", 11 config->camera_name); 12 } 13 if (config->filter != NULL) { 14 psMetadataAddStr(where, PS_LIST_TAIL, "filter", 0, "==", 15 config->filter); 16 } 17 18 if (where->list->n < 1) { 19 psFree(where); 20 where = NULL; 21 } 22 23 psArray *exposures = p2DoneExpSelectRowObjects(config->database, where, 24 MAX_ROWS); 25 psFree (where); 7 psArray *exposures = p2DoneExpSelectRowObjects(config->database, 8 config->where, MAX_ROWS); 26 9 if (!exposures) { 27 10 psError(PS_ERR_UNKNOWN, false, "no p2DoneExp rows found"); … … 34 17 frames->n = 0; 35 18 36 // 'where' to select each exposure37 where = psMetadataAlloc ();38 19 for (int i = 0; i < exposures->n; i++) { 39 20 p2DoneExpRow *exposure = exposures->data[i]; 40 21 22 // 'where' to select each exposure 23 psMetadata *where = psMetadataAlloc (); 41 24 psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", PS_META_REPLACE, "==", 42 25 exposure->exp_id); … … 44 27 psArray *images = p2DoneImfileSelectRowObjects(config->database, where, 45 28 MAX_ROWS); 29 psFree(where); 46 30 if (!images) { 47 31 psError(PS_ERR_UNKNOWN, false, "database access failed");
Note:
See TracChangeset
for help on using the changeset viewer.
