Ticket #2990: cdrip.diff
File cdrip.diff, 1.8 KB (added by , 17 years ago) |
---|
-
mythmusic/mythmusic/cdrip.cpp
30 30 #include <mythtv/mythwidgets.h> 31 31 #include <mythtv/lcddevice.h> 32 32 #include <mythtv/dialogbox.h> 33 #include <mythtv/mythmediamonitor.h> 33 34 34 35 // MythMusic includes 35 36 #include "cdrip.h" … … 367 368 Ripper::Ripper(MythMainWindow *parent, const char *name) 368 369 : MythThemedDialog(parent, "cdripper", "music-", name, true) 369 370 { 371 #ifndef _WIN32 372 // if the MediaMonitor is running stop it 373 m_mediaMonitorActive = false; 374 MediaMonitor *mon = MediaMonitor::GetMediaMonitor(); 375 if (mon && mon->IsActive()) 376 { 377 m_mediaMonitorActive = true; 378 mon->StopMonitoring(); 379 } 380 #endif 381 370 382 // Set this to false so we can tell if the ripper has done anything 371 383 // (i.e. we can tell if the user quit prior to ripping) 372 384 m_somethingwasripped = false; … … 381 393 { 382 394 if (m_decoder) 383 395 delete m_decoder; 396 397 #ifndef _WIN32 398 // if the MediaMonitor was active when we started then restart it 399 if (m_mediaMonitorActive) 400 { 401 MediaMonitor *mon = MediaMonitor::GetMediaMonitor(); 402 if (mon) 403 mon->StartMonitoring(); 404 } 405 #endif 384 406 } 385 407 386 408 void Ripper::wireupTheme(void) -
mythmusic/mythmusic/cdrip.h
145 145 QString m_albumName, m_artistName, m_genreName, m_year; 146 146 QStringList m_searchList; 147 147 bool m_somethingwasripped; 148 bool m_mediaMonitorActive; 148 149 }; 149 150 150 151