mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Camera: fix broken CameraDevice listener on Mac that would trigger only once always.
This commit is contained in:
parent
8377a6406b
commit
8fd1740ad8
1 changed files with 3 additions and 0 deletions
|
|
@ -177,6 +177,9 @@ struct CameraDevice::Pimpl
|
|||
{
|
||||
const ScopedLock sl (listenerLock);
|
||||
listeners.call ([=] (Listener& l) { l.imageReceived (image); });
|
||||
|
||||
if (! listeners.isEmpty())
|
||||
triggerImageCapture();
|
||||
}
|
||||
|
||||
void triggerImageCapture()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue