[mythtv-commits] Ticket #3073: MediaMonitor has problems if disk already mounted

MythTV mythtv at cvs.mythtv.org
Sun Feb 11 10:11:47 UTC 2007


#3073: MediaMonitor has problems if disk already mounted
--------------------+-------------------------------------------------------
 Reporter:  nigel   |        Owner:  nigel   
     Type:  defect  |       Status:  assigned
 Priority:  minor   |    Milestone:  unknown 
Component:  mythtv  |      Version:  0.20    
 Severity:  low     |   Resolution:          
--------------------+-------------------------------------------------------
Changes (by nigel):

  * status:  new => assigned

Comment:

 This seems to do the trick:
 {{{
 Index: mythcdrom-linux.cpp
 ===================================================================
 --- mythcdrom-linux.cpp (revision 12770)
 +++ mythcdrom-linux.cpp (working copy)
 @@ -143,10 +143,12 @@
                                        .arg(this->m_VolumeID)
 .arg(QString(buf.creation_date).left(16));

 -                        // attempt to mount the disc
                          // the base class's onDeviceMounted will do fine
                          // grained detection of the type of data on this
 disc
 -                        mount();
 +                        if (isMounted(true))
 +                            onDeviceMounted();
 +                        else
 +                            mount();  // onDeviceMounted() called as
 side-effect

                          if (isMounted(true))
                          {
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3073#comment:1>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list