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


Loading…
Cancel
Save