Friday, April 24, 2015

Media Engine throws MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0x80004005 when dragging application from one display to another

Hi all,

I'm working on a windows store media application and I'm having a problem when I drag the application from one display to another while playing.  If I drag the application from my VGA connected display to my DVI connected display I get MF_MEDIA_ENGINE_ERR_DECODE : HRESULT - 0x80004005.  This happens when going to the DVI connected display only.  When going the other way, the application continues to stream with no problem.  When looking at the MfTrace logs I see that the method MFCreateMediaSession() is called twice immediately before the error is issued.  This is confusing since there is no access to this method from a windows store app.  Visually, if I don't let go of the mouse when the app has transitioned to the other display it will continue to play audio though the video window is black.  Once I release the mouse button I get the error. The app has a custom source, scheme handler plus other custom media foundation pipeline components but all seem to be working appropriately.  any suggestions.   

No comments:

Post a Comment