Commit f937f4d9 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3077 from kenlck:master

parents 6df1198e 911e1bd1
...@@ -389,7 +389,7 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value ) ...@@ -389,7 +389,7 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value )
} }
else else
{ {
cv::String ip=cv::format("%d.%d.%d.%d", ((int)value>>24)&255, ((int)value>>16)&255, ((int)value>>8)&255, (int)value&255); cv::String ip=cv::format("%d.%d.%d.%d", ((unsigned int)value>>24)&255, ((unsigned int)value>>16)&255, ((unsigned int)value>>8)&255, (unsigned int)value&255);
if ((PvAttrEnumSet(Camera.Handle,"MulticastEnable", "On")==ePvErrSuccess) && if ((PvAttrEnumSet(Camera.Handle,"MulticastEnable", "On")==ePvErrSuccess) &&
(PvAttrStringSet(Camera.Handle, "MulticastIPAddress", ip.c_str())==ePvErrSuccess)) (PvAttrStringSet(Camera.Handle, "MulticastIPAddress", ip.c_str())==ePvErrSuccess))
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment