From 055c3d06c7c350da00c5a8a5460cbfa6bfb7f693 Mon Sep 17 00:00:00 2001
From: Jean-Yves Avenard <jyavenard@mythtv.org>
Date: Sun, 11 Aug 2013 14:26:41 +1000
Subject: [PATCH] Use MythErrorNotification in place of MythNotification.

It will be more consistent with other errors. Default time for an error notification is 10s already
---
 mythplugins/mythmusic/mythmusic/musicplayer.cpp | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/mythplugins/mythmusic/mythmusic/musicplayer.cpp b/mythplugins/mythmusic/mythmusic/musicplayer.cpp
index 38b6522..61e1664 100644
--- a/mythplugins/mythmusic/mythmusic/musicplayer.cpp
+++ b/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++;
-- 
1.8.3.1 (Apple Git-46)

