Changeset 2098

Show
Ignore:
Timestamp:
03/29/12 13:29:32 (11 years ago)
Author:
adi
Message:

DICE-EAP avoid adding an empty destination

Patch by Philippe Carriere.

Files:

Legend:

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

    r2096 r2098  
    14701470    stringlist ret; 
    14711471    std::vector<unsigned char> dests = rcfg->getDestinationsForSource(m_sources[srcname]); 
     1472    std::string name; 
    14721473    for (unsigned int i=0; i<dests.size(); ++i) { 
    1473         ret.push_back(getDestinationName(dests[i])); 
     1474        if ((name = getDestinationName(dests[i])) != "") { 
     1475          ret.push_back(name); 
     1476        } 
    14741477    } 
    14751478    return ret;