Skip to content

Commit

Permalink
MSYS2 : compilation warning removal
Browse files Browse the repository at this point in the history
* convert NULL to 0 to remove
`warning: converting to non-pointer type 'long int' from NULL`
* guard #pragma with #ifdef _MSC_VER
  • Loading branch information
oxillo authored Oct 19, 2019
1 parent 870dbab commit 6ee7261
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions videoInputSrcAndDemos/libs/videoInput/videoInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Thanks to:
*/
/////////////////////////////////////////////////////////

#ifdef _MSC_VER
#pragma comment(lib,"Strmiids.lib")
#endif

#include <stdlib.h>
#include <stdio.h>
Expand Down Expand Up @@ -325,15 +327,15 @@ class videoInput{

//Manual control over settings thanks.....
//These are experimental for now.
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = NULL);
bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = 0, bool useDefaultValue = false);
bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = 0);
bool getVideoSettingFilter(int deviceID, long Property, long &min, long &max, long &SteppingDelta, long &currentValue, long &flags, long &defaultValue);

bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = NULL);
bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = 0, bool useDefaultValue = false);
bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = 0);
bool getVideoSettingCamera(int deviceID, long Property, long &min, long &max, long &SteppingDelta, long &currentValue, long &flags, long &defaultValue);

//bool setVideoSettingCam(int deviceID, long Property, long lValue, long Flags = NULL, bool useDefaultValue = false);
//bool setVideoSettingCam(int deviceID, long Property, long lValue, long Flags = 0, bool useDefaultValue = false);

//get width, height and number of pixels
int getWidth(int deviceID);
Expand Down

0 comments on commit 6ee7261

Please sign in to comment.