[PATCH 3/3] Make the customEvent function only trigger on TrackChangeEvent
Jonathan Martens
jonathan at lpt-093-cos6.snetram.nl
Thu Mar 29 21:28:58 UTC 2012
---
mythplugins/mythmusic/mythmusic/scrobbler.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/mythplugins/mythmusic/mythmusic/scrobbler.cpp b/mythplugins/mythmusic/mythmusic/scrobbler.cpp
index 44a4e6c..3167fa4 100644
--- a/mythplugins/mythmusic/mythmusic/scrobbler.cpp
+++ b/mythplugins/mythmusic/mythmusic/scrobbler.cpp
@@ -12,6 +12,9 @@ Scrobbler::~Scrobbler()
void Scrobbler::customEvent(QEvent *event)
{
- LOG(VB_GENERAL, LOG_INFO, QString("Scrobbler::customEvent()"));
+ if (event->type() == MusicPlayerEvent::TrackChangeEvent)
+ {
+ LOG(VB_GENERAL, LOG_NOTICE, QString("Scrobbler::customEvent(QEvent *)"));
+ }
}
--
1.7.1
--------------080001040401040101060503--
More information about the mythtv-dev
mailing list