Ticket #3379: cddec.2.diff
File cddec.2.diff, 1.0 KB (added by , 17 years ago) |
---|
-
cddecoder.cpp
13 13 #include "metadata.h" 14 14 15 15 #include <mythtv/mythcontext.h> 16 #include <mythtv/mythmediamonitor.h> 16 17 17 18 CdDecoder::CdDecoder(const QString &file, DecoderFactory *d, QIODevice *i, 18 19 AudioOutput *o) … … 114 115 return FALSE; 115 116 } 116 117 118 MediaMonitor *mon = MediaMonitor::GetMediaMonitor(); 119 120 if (mon != NULL ) { 121 MythMediaDevice *pMedia = mon->GetMedia(devicename); 122 if (mon->ValidateAndLock(pMedia)) 123 { 124 // This should move to mythmedia too..... 125 int dvdDriveSpeed = gContext->GetNumSetting("DVDDriveSpeed", 2); 126 127 pMedia->setSpeed(dvdDriveSpeed); 128 mon->Unlock(pMedia); 129 } 130 } 131 117 132 cdda_verbose_set(device, CDDA_MESSAGE_FORGETIT, CDDA_MESSAGE_FORGETIT); 118 133 start = cdda_track_firstsector(device, tracknum); 119 134 end = cdda_track_lastsector(device, tracknum);