Fix building errors on window which caused by previous cl
BUG=311 TBR=Wu, Mallinath Review URL: https://webrtc-codereview.appspot.com/432002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1818 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -18,7 +18,7 @@ namespace videocapturemodule
|
||||
{
|
||||
VideoCaptureModule* VideoCaptureImpl::Create(
|
||||
const WebRtc_Word32 id,
|
||||
const WebRtc_UWord8* deviceUniqueIdUTF8)
|
||||
const char* deviceUniqueIdUTF8)
|
||||
{
|
||||
|
||||
if (deviceUniqueIdUTF8 == NULL)
|
||||
@@ -26,7 +26,7 @@ VideoCaptureModule* VideoCaptureImpl::Create(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
WebRtc_UWord8 productId[kVideoCaptureProductIdLength];
|
||||
char productId[kVideoCaptureProductIdLength];
|
||||
videocapturemodule::DeviceInfoWindows::GetProductId(deviceUniqueIdUTF8,
|
||||
productId,
|
||||
sizeof(productId));
|
||||
|
||||
@@ -60,7 +60,7 @@ VideoCaptureDS::~VideoCaptureDS()
|
||||
}
|
||||
|
||||
WebRtc_Word32 VideoCaptureDS::Init(const WebRtc_Word32 id,
|
||||
const WebRtc_UWord8* deviceUniqueIdUTF8)
|
||||
const char* deviceUniqueIdUTF8)
|
||||
{
|
||||
WebRtc_Word32 result = 0;
|
||||
|
||||
@@ -70,7 +70,7 @@ WebRtc_Word32 VideoCaptureDS::Init(const WebRtc_Word32 id,
|
||||
return -1;
|
||||
|
||||
// Store the device name
|
||||
_deviceUniqueId = new (std::nothrow) WebRtc_UWord8[nameLength + 1];
|
||||
_deviceUniqueId = new (std::nothrow) char[nameLength + 1];
|
||||
memcpy(_deviceUniqueId, deviceUniqueIdUTF8, nameLength + 1);
|
||||
|
||||
if (_dsInfo.Init() != 0)
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
VideoCaptureDS(const WebRtc_Word32 id);
|
||||
|
||||
virtual WebRtc_Word32 Init(const WebRtc_Word32 id,
|
||||
const WebRtc_UWord8* deviceUniqueIdUTF8);
|
||||
const char* deviceUniqueIdUTF8);
|
||||
|
||||
/*************************************************************************
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user