Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sandman42292 committed Nov 22, 2021
1 parent 56b9337 commit 4e363a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions win/platformcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include <vector>
#include <stdio.h>

#include <windows.h>
#include <mmsystem.h> // for MAKEFOURCC macro

#include "../common/logging.h"
#include "scopedcomptr.h"
#include "platformstream.h"
Expand Down Expand Up @@ -94,7 +97,7 @@ bool PlatformContext::enumerateDevices()

ScopedComPtr<ICreateDevEnum> devEnum(dev_enum);

hr = devEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory,&enum_moniker,NULL);
hr = devEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory,&enum_moniker, 0);
if (hr == S_FALSE)
{
// no devices found!
Expand Down Expand Up @@ -371,11 +374,11 @@ bool PlatformContext::enumerateFrameInfo(IMoniker *moniker, platformDeviceInfo *
newFrameInfo.bpp = pVih->bmiHeader.biBitCount;
if (pVih->bmiHeader.biCompression == BI_RGB)
{
newFrameInfo.fourcc = 'RGB ';
newFrameInfo.fourcc = MAKEFOURCC('R', 'G', 'B', ' ');
}
else if (pVih->bmiHeader.biCompression == BI_BITFIELDS)
{
newFrameInfo.fourcc = ' ';
newFrameInfo.fourcc = MAKEFOURCC(' ', ' ', ' ', ' ');
}
else
{
Expand Down

0 comments on commit 4e363a6

Please sign in to comment.