IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2007, 4:51:02 PM (19 years ago)
Author:
magnier
Message:

re-created the case if name is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r13519 r13524  
    851851    // (if there are multiple files defined with the same name).
    852852
     853    if (!name) {
     854        psMetadataItem *item = NULL;
     855        psMetadataIterator *iter = psMetadataIteratorAlloc (files, PS_LIST_HEAD, NULL);
     856        while ((item = psMetadataGetAndIncrement (iter)) != NULL) {
     857            pmFPAfile *file = item->data.V;
     858            if (state) {
     859                file->state &= PS_NOT_U8(PM_FPA_STATE_INACTIVE);
     860            } else {
     861                file->state |= PM_FPA_STATE_INACTIVE;
     862            }
     863        }
     864        psFree (iter);
     865        return true;
     866    }
     867
    853868    if (!psMetadataLookup(files, name)) {
    854869        // We activated every example of that file that we could find.
Note: See TracChangeset for help on using the changeset viewer.