mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 01:39:42 +01:00
Remove the http iofactory. AudioEngine handles http:// urls by giving them to phonon directly. Lets not download an mp3 twice.
This commit is contained in:
parent
b26bd5e296
commit
1c14f562ad
@ -80,12 +80,6 @@ Servent::Servent( QObject* parent )
|
||||
boost::bind( &Servent::remoteIODeviceFactory, this, _1 );
|
||||
this->registerIODeviceFactory( "servent", fac );
|
||||
}
|
||||
|
||||
{
|
||||
boost::function<QSharedPointer<QIODevice>(result_ptr)> fac =
|
||||
boost::bind( &Servent::httpIODeviceFactory, this, _1 );
|
||||
this->registerIODeviceFactory( "http", fac );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -880,12 +874,3 @@ Servent::localFileIODeviceFactory( const Tomahawk::result_ptr& result )
|
||||
|
||||
return QSharedPointer<QIODevice>( io );
|
||||
}
|
||||
|
||||
|
||||
QSharedPointer<QIODevice>
|
||||
Servent::httpIODeviceFactory( const Tomahawk::result_ptr& result )
|
||||
{
|
||||
QNetworkRequest req( result->url() );
|
||||
QNetworkReply* reply = TomahawkUtils::nam()->get( req );
|
||||
return QSharedPointer<QIODevice>( reply, &QObject::deleteLater );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user