Skip to content

Commit

Permalink
MythMusic: Fix showing the mini-player while playing a radio stream
Browse files Browse the repository at this point in the history
(cherry picked from commit 05d3762)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information
Paul Harrison authored and stuartm committed Jul 7, 2012
1 parent 44f23ce commit 92083c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions mythplugins/mythmusic/mythmusic/miniplayer.cpp
Expand Up @@ -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()));
Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/musiccommon.cpp
Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion mythplugins/mythmusic/mythmusic/musiccommon.h
Expand Up @@ -38,7 +38,8 @@ enum MusicView
MV_ARTISTINFO,
MV_ALBUMINFO,
MV_TRACKINFO,
MV_RADIO
MV_RADIO,
MV_MINIPLAYER
};

Q_DECLARE_METATYPE(MusicView);
Expand Down

0 comments on commit 92083c8

Please sign in to comment.