Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-4305

WM_POWERBROADCAST messages are handled incorrect

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6.0
    • 1.4.0, 1.5.0, 1.5.100
    • MediaPortal 1
    • None

    Description

      <p>The WM_POWERBROADCAST messages are handled incorrect in MediaPortal.cs.</p><ul><li>the PBT_APMSUSPEND event is passed twice to the plugins' WndProc() methods</li><li>both the PBT_APMRESUMEAUTOMATIC and the PBT_APMRESUMESUSPEND event are calling the OnResume() method in MediaPortal.cs and are then passed out of order to the plugins' WndProc() methods</li></ul><p>Both bugs have to be worked around properly both by the plugins and the MP core to avoid instabilities, which is not always the case. Instead of patching workarounds we should fix the cause and rework mmesage handling in MediaPortal.cs.</p><p>Bug fix splits up OnResume() to OnResumeAutomatic() and OnResumeSuspend(), cleans up OnResume...() and OnSuspend() code and rearranges calls to plugins' WndProc() methods for all messages.</p>

      Attachments

        Activity

          People

            michael_t michael_t (Inactive)
            michael_t michael_t (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: