Show
Ignore:
Timestamp:
06/13/12 11:30:23 (12 years ago)
Author:
adi
Message:

DICE-EAP: Avoid empty destinations in peak values map

Fix Saffire Pro24 peak value map. Patch by Philippe Carriere.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/dice/dice_eap.cpp

    r2140 r2166  
    17201720    std::map<std::string, double> ret; 
    17211721    std::map<unsigned char, int> peaks = m_peak.getPeaks(); 
     1722    std::string name; 
    17221723    for (std::map<unsigned char, int>::iterator it=peaks.begin(); it!=peaks.end(); ++it) { 
    1723         ret[getDestinationName(it->first)] = it->second; 
     1724        name = getDestinationName(it->first); 
     1725        if (name.size() != 0) { 
     1726          ret[name] = it->second; 
     1727        } 
    17241728    } 
    17251729    return ret;