Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
amarok
> amarok-enginecontroller.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File amarok-enginecontroller.diff of Package amarok
--- amarok/src/enginecontroller.cpp.orig 2005-10-25 22:25:14.000000000 +0200 +++ amarok/src/enginecontroller.cpp 2005-10-25 22:25:32.000000000 +0200 @@ -138,6 +138,11 @@ QString query = "[X-KDE-amaroK-plugintype] == 'engine' and [X-KDE-amaroK-name] != '%1'"; KTrader::OfferList offers = PluginManager::query( query.arg( engineName ) ); + for( int n = offers.count()-1, i = 0; i < n; i++ ) + if ( offers[n]->property("X-KDE-amaroK-name") == "xine-engine" && + !QFile::exists("/usr/share/xine/mad") ) + offers[n]->property( "X-KDE-amaroK-rank" ) = "128"; + // sort by rank, QValueList::operator[] is O(n), so this is quite inefficient #define rank( x ) (x)->property( "X-KDE-amaroK-rank" ).toInt() for( int n = offers.count()-1, i = 0; i < n; i++ )