home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
MP Crashes every time I turn TV off - than back on (windows program error)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Scythe42" data-source="post: 1019721" data-attributes="member: 95833"><p>Current MediaPortal.cs only works on detecting hardware changes as some kind of solution for this long standing issues as it already has means to deal with PnP Events. But the issue is DirectShow related. The stopping is a workaround and can be removed together with the Cofiguration.exe options once a proper error handling is added. But leave the detection of which device was removed for trouble shooting issues in the future.</p><p> </p><p>Please check <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd375626(v=vs.85).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/windows/desktop/dd375626(v=vs.85).aspx</a> how to do it with example code.</p><p> </p><p>For our code the easiest way would be to setup DS events as a private app event using SetWindowNotify for WM_GRAPHNOTIFY messages and deal with them in the WndProc of MediaPortal.cs. This needs to be done in all players when the graph is setup and on grahp stopping the handle needs to be released of course.</p><p> </p><p>Then on a WM_GRAHPHNOTIFY message you do a while loop as long as GetEvent has messages in the queue and process all the EC messages.</p><p> </p><p>See <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd377532(v=vs.85).aspx" target="_blank">http://msdn.microsoft.com/en-us/library/windows/desktop/dd377532(v=vs.85).aspx</a> for a full example.</p><p> </p><p>Currently WM_GRAPHNOTIFY is not checked as the players do not setup the notification at all.</p><p> </p><p>The same problem as with HDMI would for example occur with USB headphones or speakers for example s well.</p><p> </p><p>I am not sure if MP needs to do some additional stuff when the default direct show device changes as a result of the removal of an audio renderer. But one step at a time.</p><p> </p><p>First DirectSHow needs error handling. It currently does not have a proper one.</p></blockquote><p></p>
[QUOTE="Scythe42, post: 1019721, member: 95833"] Current MediaPortal.cs only works on detecting hardware changes as some kind of solution for this long standing issues as it already has means to deal with PnP Events. But the issue is DirectShow related. The stopping is a workaround and can be removed together with the Cofiguration.exe options once a proper error handling is added. But leave the detection of which device was removed for trouble shooting issues in the future. Please check [url]http://msdn.microsoft.com/en-us/library/windows/desktop/dd375626(v=vs.85).aspx[/url] how to do it with example code. For our code the easiest way would be to setup DS events as a private app event using SetWindowNotify for WM_GRAPHNOTIFY messages and deal with them in the WndProc of MediaPortal.cs. This needs to be done in all players when the graph is setup and on grahp stopping the handle needs to be released of course. Then on a WM_GRAHPHNOTIFY message you do a while loop as long as GetEvent has messages in the queue and process all the EC messages. See [url]http://msdn.microsoft.com/en-us/library/windows/desktop/dd377532(v=vs.85).aspx[/url] for a full example. Currently WM_GRAPHNOTIFY is not checked as the players do not setup the notification at all. The same problem as with HDMI would for example occur with USB headphones or speakers for example s well. I am not sure if MP needs to do some additional stuff when the default direct show device changes as a result of the removal of an audio renderer. But one step at a time. First DirectSHow needs error handling. It currently does not have a proper one. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
MP Crashes every time I turn TV off - than back on (windows program error)
Contact us
RSS
Top
Bottom