Skip to content
Permalink
Browse files

MythMusic: Use MythErrorNotification in place of MythNotification

It will be more consistent with other errors. Default time for an error
notification is 10s already.

Fixes #11735.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
  • Loading branch information
jyavenard authored and Paul Harrison committed Aug 11, 2013
1 parent 032d763 commit bc4ac99937f8807c5d41dbbb5aa72198eb559732
Showing with 3 additions and 6 deletions.
  1. +3 −6 mythplugins/mythmusic/mythmusic/musicplayer.cpp
@@ -722,8 +722,7 @@ void MusicPlayer::customEvent(QEvent *event)

LOG(VB_GENERAL, LOG_ERR, QString("Audio Output Error: %1").arg(*aoe->errorMessage()));

MythNotification n(tr("Audio Output Error"), tr("MythMusic"), *aoe->errorMessage());
n.SetDuration(10);
MythErrorNotification n(tr("Audio Output Error"), tr("MythMusic"), *aoe->errorMessage());
GetNotificationCenter()->Queue(n);

m_errorCount++;
@@ -745,8 +744,7 @@ void MusicPlayer::customEvent(QEvent *event)

LOG(VB_GENERAL, LOG_ERR, QString("Decoder Error: %2").arg(*dxe->errorMessage()));

MythNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage());
n.SetDuration(10);
MythErrorNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage());
GetNotificationCenter()->Queue(n);

m_errorCount++;
@@ -768,8 +766,7 @@ void MusicPlayer::customEvent(QEvent *event)

LOG(VB_GENERAL, LOG_ERR, QString("Decoder Handler Error - %1").arg(*dhe->getMessage()));

MythNotification n(tr("Decoder Handler Error"), tr("MythMusic"), *dhe->getMessage());
n.SetDuration(10);
MythErrorNotification n(tr("Decoder Handler Error"), tr("MythMusic"), *dhe->getMessage());
GetNotificationCenter()->Queue(n);

m_errorCount++;

0 comments on commit bc4ac99

Please sign in to comment.
You can’t perform that action at this time.