コード例 #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
ファイル: resolver.cpp プロジェクト: dsingleton/playdar
bool
Resolver::pluginadaptor_sorter(const pa_ptr& lhs, const pa_ptr& rhs)
{
    return lhs->weight() > rhs->weight();
}