Permalink
Browse files

Use ShowNotificationError API.

Simplify the code
  • Loading branch information...
jyavenard committed Jul 7, 2013
1 parent 88c491a commit 484382bdcd06102945293623b4b450592d082323
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/libs/libmythtv/audioplayer.cpp
@@ -5,6 +5,8 @@
#define LOC QString("AudioPlayer: ")
static const QString _Location = QObject::tr("Audio Player");
AudioPlayer::AudioPlayer(MythPlayer *parent, bool muted)
: m_parent(parent), m_audioOutput(NULL), m_channels(-1),
m_orig_channels(-1), m_codec(0), m_format(FORMAT_NONE),
@@ -158,9 +160,8 @@ QString AudioPlayer::ReinitAudio(void)
{
LOG(VB_GENERAL, LOG_NOTICE, LOC + "Disabling Audio" +
QString(", reason is: %1").arg(errMsg));
MythErrorNotification n(QObject::tr("Disabling Audio"),
QObject::tr("AudioPlayer"), errMsg);
MythUINotificationCenter::GetInstance()->Queue(n);
ShowNotificationError(QObject::tr("Disabling Audio"),
_Location, errMsg);
m_no_audio_out = true;
}
else if (m_no_audio_out && m_audioOutput)

0 comments on commit 484382b

Please sign in to comment.