IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32941


Ignore:
Timestamp:
Dec 13, 2011, 11:11:04 AM (14 years ago)
Author:
bills
Message:

avoid error messages about type of Video Cell concept. Allow it
to a be a boolean (which is how it defaults for non raw files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r30049 r32941  
    751751  bool has_video_cell = false;
    752752
    753   if (concept->type != PS_DATA_STRING) {
    754     psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not string\n",
    755             concept->name, concept->type);
    756     return NULL;
    757   }
    758 
    759   char *Vptr = strchr(concept->data.V,'V');
    760   if (Vptr) {
    761     has_video_cell = true;
     753  if (concept->type == PS_DATA_BOOL) {
     754    has_video_cell = concept->data.B;
     755  } else {
     756    if (concept->type != PS_DATA_STRING) {
     757        psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not string\n",
     758                concept->name, concept->type);
     759        return NULL;
     760      }
     761
     762      char *Vptr = strchr(concept->data.V,'V');
     763      if (Vptr) {
     764        has_video_cell = true;
     765      }
    762766  }
    763767
Note: See TracChangeset for help on using the changeset viewer.