Browse files

Media Monitor: tell all handlers when a device status changes to MEDI…


This changes the media monitor to tell all handlers when a devices status
changes to MEDIASTAT_OPEN even if that handler doesn't support the current
media type.

This is necessary because the media type sometimes changes to MEDIATYPE_UNKNOWN
when a CD is ejected for example so the music media handler never gets to know
the CD has been ejected because it is only set to handle MEDIATYPE_AUDIO.
  • Loading branch information...
Paul Harrison
Paul Harrison committed May 26, 2013
1 parent 9d5245d commit b4a344bc8c36408e25bf51e0381a30f26b6e61a6
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/libs/libmyth/mythmediamonitor.cpp
@@ -765,7 +765,8 @@ bool MediaMonitor::eventFilter(QObject *obj, QEvent *event)
QMap<QString, MHData>::Iterator itr = m_handlerMap.begin();
while (itr != m_handlerMap.end())
if ((*itr).MythMediaType & (int)pDev->getMediaType())
if ((*itr).MythMediaType & (int)pDev->getMediaType() ||
pDev->getStatus() == MEDIASTAT_OPEN)

0 comments on commit b4a344b

Please sign in to comment.