When I choose the ASIO driver (ASIO4All) and playback a video in Windows, a EC_ERRORABORT error is produced in the graphEventProc() routine. This error closes the vide and sets mediaEvent to null which causes a crash on the next instructions.
void graphEventProc()
{
LONG ec;
LONG_PTR p1, p2;
jassert (mediaEvent != nullptr);
while (SUCCEEDED (mediaEvent->GetEvent (&ec, &p1, &p2, 0)))
{
switch (ec)
{
case EC_REPAINT:
component.repaint();
break;
case EC_COMPLETE:
if (component.isLooping())
component.goToStart();
else
component.stop();
break;
case EC_USERABORT:
case EC_ERRORABORT:
case EC_ERRORABORTEX:
component.closeMovie(); //This causes mediaEvent to be set to null
break;
default:
break;
}
mediaEvent->FreeEventParams (ec, p1, p2);
}
}