Browse Source

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

tags/2021-05-28
jules 9 years ago
parent
commit
dfc4428af6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_video/native/juce_win32_DirectShowComponent.cpp

+ 2
- 2
modules/juce_video/native/juce_win32_DirectShowComponent.cpp 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);
}
}


Loading…
Cancel
Save