Permalink
Browse files

MythMusic: Fix showing the mini-player while playing a radio stream

(cherry picked from commit 05d3762)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information...
1 parent 44f23ce commit 92083c8577c19e4e0adb9b9e1a9754219cc3fbc6 Paul Harrison committed with stuartm Jun 18, 2012
@@ -10,6 +10,7 @@
MiniPlayer::MiniPlayer(MythScreenStack *parent)
: MusicCommon(parent, "music_miniplayer")
{
+ m_currentView = MV_MINIPLAYER;
m_displayTimer = new QTimer(this);
m_displayTimer->setSingleShot(true);
connect(m_displayTimer, SIGNAL(timeout()), this, SLOT(timerTimeout()));
@@ -171,7 +171,7 @@ bool MusicCommon::CreateCommon(void)
{
// if we are playing but we are switching to a view from a different playmode
// we need to restart playback in the new mode
- if (m_currentView == MV_VISUALIZER)
+ if (m_currentView == MV_VISUALIZER || m_currentView == MV_MINIPLAYER)
{
// this view can be used in both play modes
}
@@ -38,7 +38,8 @@ enum MusicView
MV_ARTISTINFO,
MV_ALBUMINFO,
MV_TRACKINFO,
- MV_RADIO
+ MV_RADIO,
+ MV_MINIPLAYER
};
Q_DECLARE_METATYPE(MusicView);

0 comments on commit 92083c8

Please sign in to comment.