1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Avoided a problem in DirectShowComponent that caused crashes in error cases.

This commit is contained in:
jules 2016-03-31 10:06:33 +01:00
parent 6e455aa1cb
commit dfc4428af6

View file

@ -405,6 +405,8 @@ public:
while (SUCCEEDED (mediaEvent->GetEvent (&ec, &p1, &p2, 0)))
{
mediaEvent->FreeEventParams (ec, p1, p2);
switch (ec)
{
case EC_REPAINT:
@ -427,8 +429,6 @@ public:
default:
break;
}
mediaEvent->FreeEventParams (ec, p1, p2);
}
}