1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Fixed a VS compiler warning in CameraDevice

This commit is contained in:
Tom Poole 2018-08-24 09:39:13 +01:00
parent 059c2e12ed
commit ea4442978b

View file

@ -52,14 +52,7 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
Pimpl (CameraDevice& ownerToUse, const String&, int index,
int minWidth, int minHeight, int maxWidth, int maxHeight,
bool /*highQuality*/)
: owner (ownerToUse),
isRecording (false),
openedSuccessfully (false),
imageNeedsFlipping (false),
width (0), height (0),
activeUsers (0),
recordNextFrameTime (false),
previewMaxFPS (60)
: owner (ownerToUse)
{
HRESULT hr = captureGraphBuilder.CoCreateInstance (CLSID_CaptureGraphBuilder2);
if (FAILED (hr))
@ -568,8 +561,8 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
CriticalSection pictureTakenCallbackLock;
std::function<void (const Image&)> pictureTakenCallback;
bool isRecording, openedSuccessfully;
int width, height;
bool isRecording = false, openedSuccessfully = false;
int width = 0, height = 0;
Time firstRecordedTime;
Array<ViewerComponent*> viewerComps;
@ -580,16 +573,16 @@ struct CameraDevice::Pimpl : public ChangeBroadcaster
ComSmartPtr<ISampleGrabber> sampleGrabber;
ComSmartPtr<IMediaControl> mediaControl;
ComSmartPtr<IPin> smartTeePreviewOutputPin, smartTeeCaptureOutputPin;
int activeUsers;
int activeUsers = 0;
Array<int> widths, heights;
DWORD graphRegistrationID;
CriticalSection imageSwapLock;
bool imageNeedsFlipping;
bool imageNeedsFlipping = false;
Image loadingImage, activeImage;
bool recordNextFrameTime;
int previewMaxFPS;
bool recordNextFrameTime = false;
int previewMaxFPS = 60;
JUCE_DECLARE_WEAK_REFERENCEABLE (Pimpl)