Skip to content

Commit

Permalink
Display notification when opening the audio device failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jyavenard committed Jul 6, 2013
1 parent 10fcf33 commit 4fc35ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mythtv/libs/libmythtv/audioplayer.cpp
@@ -1,6 +1,7 @@
#include "mythplayer.h"
#include "audiooutput.h"
#include "audioplayer.h"
#include "mythuinotificationcenter.h"

#define LOC QString("AudioPlayer: ")

Expand Down Expand Up @@ -155,11 +156,10 @@ QString AudioPlayer::ReinitAudio(void)

if (!errMsg.isEmpty())
{
if (!firstinit)
{
LOG(VB_GENERAL, LOG_NOTICE, LOC + "Disabling Audio" +
QString(", reason is: %1").arg(errMsg));
}
LOG(VB_GENERAL, LOG_NOTICE, LOC + "Disabling Audio" +
QString(", reason is: %1").arg(errMsg));
MythNotification n(QObject::tr("Disabling Audio"), QObject::tr("AudioPlayer"), errMsg);
MythUINotificationCenter::GetInstance()->Queue(n);
m_no_audio_out = true;
}
else if (m_no_audio_out && m_audioOutput)
Expand Down

0 comments on commit 4fc35ec

Please sign in to comment.