Ticket #4877: umount-eject.patch

File umount-eject.patch, 583 bytes (added by nigel, 4 years ago)

0-21-fixes patch

  • libs/libmyth/mythcdrom.cpp

     
    119119    if (MEDIATYPE_DATA == m_MediaType) 
    120120        MythMediaDevice::onDeviceMounted(); 
    121121 
     122 
     123    // Unlock the door, and if appropriate unmount the media, 
     124    // so the user can press the manual eject button 
    122125    if (m_AllowEject) 
     126    { 
    123127        unlock(); 
     128        if (m_MediaType == MEDIATYPE_DVD || m_MediaType == MEDIATYPE_VCD) 
     129            unmount(); 
     130    } 
    124131} 
    125132