Ticket #9362: 70-mythmusic-cdio-main.diff
File 70-mythmusic-cdio-main.diff, 3.4 KB (added by , 14 years ago) |
---|
-
mythplugins/mythmusic/mythmusic/databasebox.cpp
27 27 #include "cddecoder.h" 28 28 #include "playlistcontainer.h" 29 29 #include "musicplayer.h" 30 #ifndef USING_MINGW31 #include "cddecoder.h"32 #endif33 30 34 31 DatabaseBox::DatabaseBox(MythMainWindow *parent, 35 32 const QString dev, const QString &window_name, … … 1276 1273 1277 1274 void ReadCDThread::run() 1278 1275 { 1279 #ifndef USING_MINGW1280 1276 // lock all_music and cd_status_changed while running thread 1281 1277 QMutexLocker locker(getLock()); 1282 1278 … … 1364 1360 } 1365 1361 1366 1362 delete decoder; 1367 #endif // USING_MINGW1368 1363 } 1369 1364 -
mythplugins/mythmusic/mythmusic/main.cpp
34 34 #include "filescanner.h" 35 35 #include "musicplayer.h" 36 36 #include "config.h" 37 #ifndef USING_MINGW38 37 #include "cdrip.h" 39 38 #include "importmusic.h" 40 #endif41 39 42 40 // System header (relies on config.h define) 43 41 #ifdef HAVE_CDAUDIO … … 272 270 { 273 271 loadMusic(); 274 272 273 #if defined HAVE_CDAUDIO || defined HAVE_CDIO 275 274 MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); 276 275 277 276 Ripper *rip = new Ripper(mainStack, chooseCD()); … … 284 283 QObject::connect(rip, SIGNAL(ripFinished()), 285 284 gMusicData, SLOT(reloadMusic()), 286 285 Qt::QueuedConnection); 286 #endif 287 287 } 288 288 289 289 static void startImport(void) 290 290 { 291 291 loadMusic(); 292 292 293 #if defined HAVE_CDAUDIO || defined HAVE_CDIO 293 294 MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); 294 295 295 296 ImportMusicDialog *import = new ImportMusicDialog(mainStack); … … 302 303 QObject::connect(import, SIGNAL(importFinished()), 303 304 gMusicData, SLOT(reloadMusic()), 304 305 Qt::QueuedConnection); 306 #endif 305 307 } 306 308 307 309 static void MusicCallback(void *data, QString &selection) … … 396 398 { 397 399 loadMusic(); 398 400 401 #if defined HAVE_CDAUDIO || defined HAVE_CDIO 399 402 MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); 400 403 401 404 Ripper *rip = new Ripper(mainStack, chooseCD()); … … 408 411 QObject::connect(rip, SIGNAL(ripFinished()), 409 412 gMusicData, SLOT(reloadMusic()), 410 413 Qt::QueuedConnection); 414 #endif 411 415 } 412 416 413 417 static void runScan(void) … … 472 476 } 473 477 474 478 if (gCoreContext->GetNumSetting("AutoPlayCD", 0)) 479 { 480 // Empty the playlist to ensure CD is played first 481 if (gMusicData->all_music) 482 gMusicData->all_music->clearCDData(); 483 if (gMusicData->all_playlists) 484 gMusicData->all_playlists->clearCDList(); 485 475 486 runMusicPlayback(); 487 } 476 488 else 477 489 mythplugin_run(); 478 490 } -
mythplugins/mythmusic/mythmusic/musiccommon.cpp
32 32 #include "search.h" 33 33 #include "editmetadata.h" 34 34 35 #ifndef USING_MINGW36 35 #include "cddecoder.h" 37 #endif // USING_MINGW38 36 39 37 #include "musiccommon.h" 40 38 //#include "playlistview.h"