Ticket #11735: 0001-Use-MythErrorNotification-in-place-of-MythNotificati.patch

File 0001-Use-MythErrorNotification-in-place-of-MythNotificati.patch, 2.0 KB (added by JYA, 13 years ago)

mods

  • mythplugins/mythmusic/mythmusic/musicplayer.cpp

    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)  
    722722
    723723        LOG(VB_GENERAL, LOG_ERR, QString("Audio Output Error: %1").arg(*aoe->errorMessage()));
    724724
    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());
    727726        GetNotificationCenter()->Queue(n);
    728727
    729728        m_errorCount++;
    void MusicPlayer::customEvent(QEvent *event)  
    745744
    746745        LOG(VB_GENERAL, LOG_ERR, QString("Decoder Error: %2").arg(*dxe->errorMessage()));
    747746
    748         MythNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage());
    749         n.SetDuration(10);
     747        MythErrorNotification n(tr("Decoder Error"), tr("MythMusic"), *dxe->errorMessage());
    750748        GetNotificationCenter()->Queue(n);
    751749
    752750        m_errorCount++;
    void MusicPlayer::customEvent(QEvent *event)  
    768766
    769767        LOG(VB_GENERAL, LOG_ERR, QString("Decoder Handler Error - %1").arg(*dhe->getMessage()));
    770768
    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());
    773770        GetNotificationCenter()->Queue(n);
    774771
    775772        m_errorCount++;