Ticket #3379: cddec.diff
File cddec.diff, 2.0 KB (added by , 17 years ago) |
---|
-
playbackbox.cpp
272 272 lcd->switchToTime(); 273 273 } 274 274 275 bool PlaybackBoxMusic::onMediaEvent(MythMediaDevice* )275 bool PlaybackBoxMusic::onMediaEvent(MythMediaDevice* pDev) 276 276 { 277 277 return scan_for_cd; 278 278 } -
main.cpp
297 297 void runScan(void); 298 298 299 299 300 void handleMedia(MythMediaDevice * )300 void handleMedia(MythMediaDevice *pDev) 301 301 { 302 303 // Set the CD/DVD drive on default speed... Although a speed of '1' should 304 // always be sufficiant for both audio and mp3's and the likes.... 305 int dvdDriveSpeed = gContext->GetNumSetting("DVDDriveSpeed", 2); 306 pDev->setSpeed(dvdDriveSpeed); 307 302 308 if (gContext->GetNumSetting("AutoPlayCD", 0)) 303 309 runMusicPlayback(); 304 310 else -
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);