This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Camera: fix broken CameraDevice listener on Mac that would trigger only once always.
tags/2021-05-28
Lukasz Kozakiewicz
7 years ago
parent
8377a6406b
commit
8fd1740ad8
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
modules/juce_video/native/juce_mac_CameraDevice.h
+ 3
- 0
modules/juce_video/native/juce_mac_CameraDevice.h
View File
@@ -177,6 +177,9 @@ struct CameraDevice::Pimpl
{
const ScopedLock sl (listenerLock);
listeners.call ([=] (Listener& l) { l.imageReceived (image); });
if (! listeners.isEmpty())
triggerImageCapture();
}
void triggerImageCapture()
Write
Preview
Loading…
Cancel
Save