Permalink
Browse files

Display notification when opening the audio device failed

  • Loading branch information...
jyavenard committed Jul 6, 2013
1 parent 10fcf33 commit 4fc35ec91d96eb4a9ccac803a2c13527593e63e9
Showing with 5 additions and 5 deletions.
  1. +5 −5 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: ")
@@ -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)

0 comments on commit 4fc35ec

Please sign in to comment.