Browse Source

win32 camera ref-counting fix.

tags/2021-05-28
jules 12 years ago
parent
commit
70964f3f87
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_video/native/juce_win32_CameraDevice.cpp

+ 6
- 1
modules/juce_video/native/juce_win32_CameraDevice.cpp View File

@@ -171,9 +171,14 @@ public:
for (int i = viewerComps.size(); --i >= 0;)
viewerComps.getUnchecked(i)->ownerDeleted();
if (sampleGrabber != nullptr)
{
sampleGrabber->SetCallback (nullptr, 0);
sampleGrabber = nullptr;
}
callback = nullptr;
graphBuilder = nullptr;
sampleGrabber = nullptr;
mediaControl = nullptr;
filter = nullptr;
captureGraphBuilder = nullptr;


Loading…
Cancel
Save