예제 #1
0
파일: resolver.cpp 프로젝트: RJ/playdar
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();
}
예제 #2
0
bool
Resolver::pluginadaptor_sorter(const pa_ptr& lhs, const pa_ptr& rhs)
{
    return lhs->weight() > rhs->weight();
}