mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +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;
|
return m_source;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
StreamConnection::showStats( qint64 tx, qint64 rx )
|
StreamConnection::showStats( qint64 tx, qint64 rx )
|
||||||
{
|
{
|
||||||
@@ -190,9 +191,11 @@ StreamConnection::startSending( const Tomahawk::result_ptr& result )
|
|||||||
void
|
void
|
||||||
StreamConnection::reallyStartSending( const Tomahawk::result_ptr& result, QSharedPointer< QIODevice >& io )
|
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() )
|
if ( !io || io.isNull() )
|
||||||
{
|
{
|
||||||
qDebug() << "Couldn't read from source:" << m_result->url();
|
qDebug() << "Couldn't read from source:" << result->url();
|
||||||
shutdown();
|
shutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user