Changeset 15219 for trunk/psModules/src/concepts/pmConceptsStandard.c
- Timestamp:
- Oct 4, 2007, 12:09:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsStandard.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsStandard.c
r15052 r15219 140 140 141 141 if (item->type == PS_DATA_STRING) { 142 return psMetadataItemAllocStr(concept->name, concept->comment, item->data.V);142 return psMetadataItemAllocStr(concept->name, concept->comment, item->data.V); 143 143 } 144 144 145 145 if (item->type == PS_DATA_METADATA_MULTI) { 146 psMetadataItem *entry = psListGet (item->data.list, PS_LIST_HEAD);147 if (!entry) {148 psError(PS_ERR_UNEXPECTED_NULL, true,149 "List for %s in FILTER.ID in camera configuration is empty.\n", key);150 return NULL;151 }152 return psMetadataItemAllocStr(concept->name, concept->comment, entry->data.V);146 psMetadataItem *entry = psListGet (item->data.list, PS_LIST_HEAD); 147 if (!entry) { 148 psError(PS_ERR_UNEXPECTED_NULL, true, 149 "List for %s in FILTER.ID in camera configuration is empty.\n", key); 150 return NULL; 151 } 152 return psMetadataItemAllocStr(concept->name, concept->comment, entry->data.V); 153 153 } 154 154 155 155 psError(PS_ERR_UNEXPECTED_NULL, true, 156 "Unable to find %s in FILTER.ID in camera configuration.\n", key);156 "Unable to find %s in FILTER.ID in camera configuration.\n", key); 157 157 return NULL; 158 158 } … … 800 800 801 801 psRegion *trimsec = psMemIncrRefCounter(concept->data.V); // The trimsec region 802 if (!trimsec) { 803 return psMetadataItemAllocStr(concept->name, concept->comment, NULL); 804 } 802 805 803 806 // Correct trim section for binning if it's specified explicitly (i.e., immutably) in the CELLS.
Note:
See TracChangeset
for help on using the changeset viewer.
