Changeset 19018 for trunk/psModules/src/concepts/pmConceptsPhotcode.c
- Timestamp:
- Aug 11, 2008, 5:22:32 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsPhotcode.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsPhotcode.c
r13410 r19018 17 17 #include "pmConceptsPhotcode.h" 18 18 19 psString pmConceptsPhotcodeForView(pm Config *config, pmFPAfile *file, const pmFPAview *view)19 psString pmConceptsPhotcodeForView(pmFPAfile *file, const pmFPAview *view) 20 20 { 21 PS_ASSERT_PTR_NON_NULL(config, NULL);22 21 PS_ASSERT_PTR_NON_NULL(file, NULL); 23 22 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 28 27 } 29 28 30 // select recipe options supplied on command line29 // select photcode rule from camera configuration 31 30 bool mdok; // Status of MD lookup 32 psMetadata *recipe = psMetadataLookupPtr(&mdok, config->recipes, "PPIMAGE"); 33 if (!mdok || !recipe) { 34 psError(PS_ERR_IO, true, "Recipe PPIMAGE not found\n"); 35 return NULL; 36 } 37 38 // select photcode rule from recipe 39 char *rule = psMetadataLookupStr(&mdok, recipe, "PHOTCODE.RULE"); 31 char *rule = psMetadataLookupStr(&mdok, file->camera, "PHOTCODE.RULE"); 40 32 if (!mdok || !rule || strlen(rule) == 0) { 41 psError(PS_ERR_IO, true, "PHOTCODE.RULE not found in PPIMAGE recipe\n");33 psError(PS_ERR_IO, true, "PHOTCODE.RULE not found in camera configuration."); 42 34 return NULL; 43 35 }
Note:
See TracChangeset
for help on using the changeset viewer.
