Remove the DestroyDeviceInfo for mac video capture. (This is missed in r731.)

Review URL: http://webrtc-codereview.appspot.com/229001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@750 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
wu@webrtc.org 2011-10-14 15:13:16 +00:00
parent d0bdab0128
commit 58691ebb97

View File

@ -269,26 +269,6 @@ VideoCaptureImpl::CreateDeviceInfo(const WebRtc_Word32 id)
}
void VideoCaptureImpl::DestroyDeviceInfo(DeviceInfo* deviceInfo)
{
WEBRTC_TRACE(webrtc::kTraceModuleCall, webrtc::kTraceVideoCapture, 0,
"%s:%d", __FUNCTION__, __LINE__);
#if __MAC_OS_X_VERSION_MIN_REQUIRED == __MAC_10_4 // QuickTime version
webrtc::videocapturemodule::VideoCaptureMacQuickTimeInfo* captureDeviceInfo =
static_cast<webrtc::videocapturemodule::VideoCaptureMacQuickTimeInfo*> (deviceInfo);
delete captureDeviceInfo;
captureDeviceInfo = NULL;
#else // QTKit version
webrtc::videocapturemodule::VideoCaptureMacQTKitInfo* captureDeviceInfo =
static_cast<webrtc::videocapturemodule::VideoCaptureMacQTKitInfo*> (deviceInfo);
delete captureDeviceInfo;
captureDeviceInfo = NULL;
#endif
}
/**************************************************************************
*
* End Create/Destroy VideoCaptureModule