DirectShowComponent crashes app if app is using Windows Exclusive Mode audio


#1

DirectShowComponent crashes app if app is using Windows Exclusive Mode audio as soon as the video tries to play any audio.

Can you wrap while (SUCCEEDED (mediaEvent->GetEvent (&ec, &p1, &p2, 0))) loop in graphyEventProc() in a try/catch(…)?


#2

I’m not sure we can do much about that - I suspect this is coming directly from the corresponding Windows drivers.

Does a try/catch help? What exception are you seeing?


#3

I’m seeing:

Exception thrown: read access violation.

this->mediaEvent.p was nullptr.

The catch (…) seems to let everything continue fine, just without audio. Which is expected since I have exclusive access to the audio.