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
|
b
|
void MusicPlayer::customEvent(QEvent *event)
|
| 722 | 722 | |
| 723 | 723 | LOG(VB_GENERAL, LOG_ERR, QString("Audio Output Error: %1").arg(*aoe->errorMessage())); |
| 724 | 724 | |
| 725 | | MythNotification n(tr("Audio Output Error"), tr("MythMusic"), *aoe->errorMessage()); |
| 726 | | n.SetDuration(10); |
| | 725 | MythErrorNotification n(tr("Audio Output Error"), tr("MythMusic"), *aoe->errorMessage()); |
| 727 | 726 | GetNotificationCenter()->Queue(n); |
| 728 | 727 | |
| 729 | 728 | m_errorCount++; |
| … |
… |
void MusicPlayer::customEvent(QEvent *event)
|
| 745 | 744 | |
| 746 | 745 | LOG(VB_GENERAL, LOG_ERR, QString("Decoder Error: %2").arg(*dxe->errorMessage())); |
| 747 | 746 | |
| 748 | | MythNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage()); |
| 749 | | n.SetDuration(10); |
| | 747 | MythErrorNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage()); |
| 750 | 748 | GetNotificationCenter()->Queue(n); |
| 751 | 749 | |
| 752 | 750 | m_errorCount++; |
| … |
… |
void MusicPlayer::customEvent(QEvent *event)
|
| 768 | 766 | |
| 769 | 767 | LOG(VB_GENERAL, LOG_ERR, QString("Decoder Handler Error - %1").arg(*dhe->getMessage())); |
| 770 | 768 | |
| 771 | | MythNotification n(tr("Decoder Handler Error"), tr("MythMusic"), *dhe->getMessage()); |
| 772 | | n.SetDuration(10); |
| | 769 | MythErrorNotification n(tr("Decoder Handler Error"), tr("MythMusic"), *dhe->getMessage()); |
| 773 | 770 | GetNotificationCenter()->Queue(n); |
| 774 | 771 | |
| 775 | 772 | m_errorCount++; |