mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Extra safety for AudioEngine.
This commit is contained in:
@@ -342,6 +342,9 @@ AudioEngine::sendWaitingNotification() const
|
|||||||
void
|
void
|
||||||
AudioEngine::sendNowPlayingNotification( const Tomahawk::InfoSystem::InfoType type )
|
AudioEngine::sendNowPlayingNotification( const Tomahawk::InfoSystem::InfoType type )
|
||||||
{
|
{
|
||||||
|
if ( m_currentTrack.isNull() )
|
||||||
|
return;
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
if ( m_currentTrack->toQuery()->coverLoaded() )
|
if ( m_currentTrack->toQuery()->coverLoaded() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user