Skip to content
Browse files

MythMusic: Stop playing if a CD is ejected and we were playing a trac…

…k from it

Refs #11708.
  • Loading branch information
Paul Harrison
Paul Harrison committed Aug 11, 2013
1 parent ceb3182 commit 3823b0ea2af226bc774e1de3f756e619d9b4e089
Showing with 8 additions and 0 deletions.
  1. +8 −0 mythplugins/mythmusic/mythmusic/main.cpp
@@ -465,6 +465,14 @@ static void handleCDMedia(MythMediaDevice *cd)
LOG(VB_MEDIA, LOG_INFO, "Device is not usable clearing cd data");

if (gPlayer->isPlaying() && gPlayer->getCurrentMetadata()
&& gPlayer->getCurrentMetadata()->isCDTrack())
// we was playing a cd track which is no longer available so stop playback
// TODO should check the playing track is from the ejected drive if more than one is available

// device is not usable so remove any existing CD tracks
if (gMusicData->all_music)

0 comments on commit 3823b0e

Please sign in to comment.
You can’t perform that action at this time.