Ticket #991: myth-wake-on-media.2.patch
File myth-wake-on-media.2.patch, 1.1 KB (added by , 18 years ago) |
---|
-
libs/libmyth/mythdialogs.cpp
772 772 else if (ce->type() == kMediaEventType) 773 773 { 774 774 MediaEvent *media_event = (MediaEvent*)ce; 775 776 /* Media inserts are always a manual user action. 777 * We should wake up the screen on it whether it can play or not. 778 */ 779 if (gContext->GetScreenIsAsleep()) 780 { 781 gContext->ResetScreensaver(); 782 QApplication::postEvent(this, new MediaEvent( 783 media_event->getOldStatus(), 784 media_event->getDevice())); 785 VERBOSE(VB_GENERAL, "Injecting DPMS wakeup for media event."); 786 return; 787 } 788 775 789 // Let's see which of our jump points are configured to handle this 776 790 // type of media... If there's more than one we'll want to show some 777 791 // UI to allow the user to select which jump point to use. But for