Ticket #991: myth-wake-on-media.2.patch

File myth-wake-on-media.2.patch, 1.1 KB (added by kcodyjr@…, 15 years ago)

Fixed patch depends on trac #982.

  • libs/libmyth/mythdialogs.cpp

     
    772772    else if (ce->type() == kMediaEventType)
    773773    {
    774774        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
    775789        // Let's see which of our jump points are configured to handle this
    776790        // type of media...  If there's more than one we'll want to show some
    777791        // UI to allow the user to select which jump point to use. But for