Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.4.0, 1.5.0, 1.5.100
-
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
Issue Links
- relates to
-
MP1-4333 Not all WM_POWERBROADCAST messages are passed to plugins
-
- Closed
-