Exemple #1
0
bool
Resolver::pluginadaptor_sorter(const pa_ptr& lhs, const pa_ptr& rhs)
{
    // this first check is really just cosmetic
    // the sorting looks nicer this way:
    if( lhs->weight() == rhs->weight() )
        return lhs->targettime() < rhs->targettime();
    // this is the important bit that orders the pipeline:
    return lhs->weight() > rhs->weight();
}
Exemple #2
0
bool
Resolver::pluginadaptor_sorter(const pa_ptr& lhs, const pa_ptr& rhs)
{
    return lhs->weight() > rhs->weight();
}