Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the media monitor unmounting blu-ray discs after insertion, we ne…

…ed them to be mounted in order to play them. Fixes #10759

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information...
commit 477e12fd2efe7c62af2a47285cf2c82b31794261 1 parent 27fd744
Bryan ? authored stuartm committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/libs/libmythbase/mythcdrom.cpp
View
7 mythtv/libs/libmythbase/mythcdrom.cpp
@@ -78,7 +78,7 @@ void MythCDROM::onDeviceMounted()
m_MediaType = MEDIATYPE_DVD;
m_Status = MEDIASTAT_USEABLE;
}
- if (bd.exists())
+ else if (bd.exists())
{
LOG(VB_MEDIA, LOG_INFO, "Probable Blu-ray detected.");
m_MediaType = MEDIATYPE_BD;
@@ -97,8 +97,10 @@ void MythCDROM::onDeviceMounted()
m_Status = MEDIASTAT_USEABLE;
}
else if (bad_dvd.exists())
+ {
LOG(VB_GENERAL, LOG_ERR,
"DVD incorrectly mounted? (ISO9660 instead of UDF)");
+ }
else
{
LOG(VB_GENERAL, LOG_ERR,
@@ -118,8 +120,7 @@ void MythCDROM::onDeviceMounted()
if (m_AllowEject)
{
unlock();
- if (m_MediaType == MEDIATYPE_DVD || m_MediaType == MEDIATYPE_VCD ||
- m_MediaType == MEDIATYPE_BD)
+ if (m_MediaType == MEDIATYPE_DVD || m_MediaType == MEDIATYPE_VCD)
unmount();
}
}

0 comments on commit 477e12f

Please sign in to comment.
Something went wrong with that request. Please try again.