mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Use result and added comment as to why we require this parameter.
This commit is contained in:
@@ -120,6 +120,7 @@ StreamConnection::source() const
|
||||
return m_source;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
StreamConnection::showStats( qint64 tx, qint64 rx )
|
||||
{
|
||||
@@ -190,9 +191,11 @@ StreamConnection::startSending( const Tomahawk::result_ptr& result )
|
||||
void
|
||||
StreamConnection::reallyStartSending( const Tomahawk::result_ptr& result, QSharedPointer< QIODevice >& io )
|
||||
{
|
||||
// Note: We don't really need to pass in 'result' here, since we already have it stored
|
||||
// as a member variable. The callback-signature of getIODeviceForUrl requires it, though.
|
||||
if ( !io || io.isNull() )
|
||||
{
|
||||
qDebug() << "Couldn't read from source:" << m_result->url();
|
||||
qDebug() << "Couldn't read from source:" << result->url();
|
||||
shutdown();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user